Home All Groups Group Topic Archive Search About

VB6 Driver App with .Net DLL ERROR

Author
9 Mar 2006 3:40 PM
PJSimon
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!

Author
9 Mar 2006 6:29 PM
Chris
PJSimon wrote:
Show quoteHide quote
> 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
Author
10 Mar 2006 5:30 AM
rmacias
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.

Show quoteHide quote
"PJSimon" wrote:

> 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!