Information générale
Titre:
On Shutdown - Weird Behavior
I must be missing something simple here.
I've got an ON SHUTDOWN in effect in an application - it just calls the main form's release(), which calls a CLEAR EVENTS, which then exits the main prg.
The only reason that I'm using the ON SHUTDOWN is because I need the application to close when the user closes Windows. Now when I try to shut down Windows with this application open, the application closes, but Windows doesn't. If I try to shut down Windows a 2nd time (now with my app shut down), Windows shuts down fine.
Any ideas?
Thanks!
-Matt
Here's the code
---------------------------
ON SHUTDOWN DO ShutIt
PROCEDURE ShutIt
*
ON SHUTDOWN
IF VARTYPE('oMain') = "O" AND !ISNULL(oMain)
oMain.Release()
ENDIF
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement