Problem to close a VB6 app in XP

D

De Pessemier An

Hi,

When i try to shutdown my VB6 application in XP i get a runtime error:

Run-time error '-2147418105 (80010007):
Automation error
The callee (server [not server application]) is not available and
disappeared; all
connections are invalid. The call may have executed.

My application (an exe that calls a dll) works fine on WINNT and WIN2000 but
fails on XP with the Run-time error above.
I try to close a dll and then the exe

To close the dll (IN DLL in Global multiuse module)
---------------------------------------------------
Public Sub Shutdown_Dll()
Dim oFrm As Form

For Each oFrm In Forms
If Screen.ActiveForm Is Nothing Then Exit For
Unload Screen.ActiveForm
Next

RaiseEvent ShutdownExe
End sub
 

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