Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7041493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:03:09+00:00 2026-05-28T02:03:09+00:00

I am working on an old VB6 app and have recently added the Siemens

  • 0

I am working on an old VB6 app and have recently added the Siemens OPC component. When running in VB6 debugger I have no problems.

I then created a deployment package (Siemens OPC dlls included in the package) and deployed the app on the same PC. I then get the following error message when accessing the OPC object:

‘Method ~ of object ~ failed’

Can anyone suggest what might be causing this or what I can do to get more information?

UPDATE
I am aware of other questions around this error message. What is puzzling me here is that there are no problems when using the VB debugger. The problems occur after deployment – even on the same machine. I would have thought that all the components remain registered and available.

CODE

Public Sub InitialiseOPC(ServerIP As String, OpcServerName As String, BaseAddress As String)
    On Error GoTo ProcError
    IsInitialised = False

    Set MyOpcServer = New OPCServer
    Dim LocalServers

    LocalServers = MyOpcServer.GetOPCServers(ServerIP)
    ....

The error occurs when GetOPCServers is called. This is the first time the OPC component is accessed.

Is there any way to trace what VB is doing at this time (e.g. dll loading) ?

UPDATE

I tried deploying the Siemens dlls to the application folder instead of the default locations and this error message no longer appears.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:03:10+00:00Added an answer on May 28, 2026 at 2:03 am

    Method ~ of object ~ failed is generated when an exception (SEH) is thrown during a late-bound call. VB6 makes the effort to “wrap” each late-bound call to catch such unexpected behavior.

    In your case most probably a VC component is trying to load a dependent DLL or COM object and fails but does not handle the failure gracefully. Instead it tries to call a method on the empty reference and bombs with an Access Violation or similar exception.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a legacy VB6 app, which is critical to our business. We're working
I am working on old sites and updating the deprecated php functions. I have
I am working on an old ASP web app (not .net) and I need
I'm working with an old windows app in visual studio 2005. A webserviced referenced
I'm working on an old project written and then patched by several people over
I'm working on a very old project (2000) in VB6 which was modernized and
im working on a old code and i have this warning message: Passed-by-value struct
I have a VB6 application that still references some old VB5 libraries (dll, vbr,
I have an old software that written in VB6 with infragistics SSActiveToolBars control (ActiveThreedPlus).
I'm moving web-app from pure php to Symfony2 and going to save working old

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.