Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DESTROY() in modeless top level form not firing on close
Message
De
09/04/2006 08:58:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01111727
Message ID:
01111759
Vues:
21
>I've got a couple of objects I have to destroy in my modeless top level form when it closes.
>
>It appears that the form is not destroyed until I eventually close the main VFP window in the application - even when I directly call the form's DESTROY() in the QueryUnload() event. I think I have also tried calling the DESTROY() of the particular object on the form in the QueryUnload().
>
>Is that correct? Are calls to the form's DESTROY suspended until the app closes? Should I put the cleanup code into a custom method instead, so it can be called by the QueryUnload?
>
>Also - what happens to the form if it's not destroyed - is it just invisible?
>
>TIA

Michael,
It's not correct. Probably you have a dangling object reference that prevents the form being destroyed.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform