Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
On Shutdown - Weird Behavior
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
On Shutdown - Weird Behavior
Divers
Thread ID:
00601610
Message ID:
00601610
Vues:
48
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
Fil
Voir

Click here to load this message in the networking platform