Problem to close a VB6 app in XP

  • Thread starter Thread starter De Pessemier An
  • Start date Start date
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
 
Back
Top