|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VB6 Driver App with .Net DLL ERRORI 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! PJSimon wrote:
Show quoteHide quote > I have an application written in VB6 that calls a DLL written in .Net. On Sounds like you are not reinitializing something when you try to make > 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! 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 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!
Can't modify instance of a class from within the class!
WebBrowser Control Printing Garbage collection, Unmanaged code and SafeArrays Defining data types for fields, when you a create a file close Form1 & open Form2 Problem sending Report as EMail - wrong attach. name "untitled.txt" Regular Expression Question Fastest way to load jpg images ? Single event handler for menu UDPState |
|||||||||||||||||||||||