VB6 Driver App with .Net DLL ERROR

G

Guest

I have an application written in VB6 that calls a DLL written in .Net. On
the first run of the program, everything works fine. If I stop the program
or close it, then run the program again, I get the following error when
calling a function in the .Net DLL:

The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call may have executed.

If I close the program, then close VB6, reopen VB6 and run the program it
runs fine. Try to run the program a 2nd time without closing VB6, and I get
the error again.

Let me know if I need to provide more info.

THANKS!
 
C

Chris

PJSimon said:
I have an application written in VB6 that calls a DLL written in .Net. On
the first run of the program, everything works fine. If I stop the program
or close it, then run the program again, I get the following error when
calling a function in the .Net DLL:

The callee (server [not server application]) is not available and
disappeared; all connections are invalid. The call may have executed.

If I close the program, then close VB6, reopen VB6 and run the program it
runs fine. Try to run the program a 2nd time without closing VB6, and I get
the error again.

Let me know if I need to provide more info.

THANKS!


Sounds like you are not reinitializing something when you try to make
your call. Try to duplicate all the steps you do during the first call
again. By that I mean redeclare all your variables. Can't help anymore
w/o code.

Chris
 
G

Guest

Show us how your exposing your .NET DLL to COM and how your VB6 app invokes
the .NET dll. I do this all the time and have never had a problem.

In my experience, the VB6.exe does some weird things and likes to hold on to
handles when the program has stopped executing.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top