Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to close modal forms on shutdown?
Message
 
 
À
30/03/2002 02:08:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00639127
Message ID:
00639176
Vues:
17
>Hi all,
>
>I am using a ON Shutdown procedure to release all active forms, close all data tables, clean up and quit when the user clicks on the main screen close button, or when Windows is shutting down, etc. Most forms are modeless and the on shutdown procedure works as expected until I have a modal form, browse window, or messagebox on the screen as the active window. If this is the case, my app hangs ON SHUTDOWN. I am using VFP6 SP5.
>
>_screen.closable = .t. and the modal form is closable.
>
>I thought it had something to do with the order that I was releasing the forms. I have tried releasing _screen.forms() in ascending order and descending order with the same result. It appears that the active window is _screen.forms(1) so I try releasing _screen.forms(1) until formcount = 0. This must be causing a dangling reference or somthing, because when the active form is modal, _screen.forms(1) seems to be the reference to the modal form, but _screen.forms(1).release does not release it.
>
>How do you close MODAL screens on shutdown?
>

Did you try to suspend program at that point an use Debugger to investigate the problem?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform