Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Close any open form before exit
Message
De
16/06/2004 14:55:35
 
 
À
16/06/2004 01:40:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00913951
Message ID:
00914380
Vues:
11
What's your _SCREEN.FormCount ? If the forms still exist this could possibly be some large number. If your form's ar just hidden and not closed properly, you might just need to find the logic problem. Or you may have a dangling reference to some object in your form class that's preventing the form from closing properly.


>Hi,
>
>Since we are in the topics of closing all the form.
>I had similar problem on this topics.
>
>My application form are created using classes.
>User just click the x button on the top right concern
>to close the form. Our form are created using
>createobject.
>
>Upon exit, we release the class and set it to null.
>
>However, repeatly opening and closing the same form
>will cause the runtime error of 'too many windows open'.
>I suspect some form calling other classes are not close
>properly which is causing the problem.
>
>How do I rememdy this issue.
>Any help or advise is very much appreciated.
>Thank you
>
>
>>I agree that I had the loop backgrounds, should have started at the high number and went backwards, but there really isn't anything wrong with having the IF/END IF. Sure your code works as well and I thank you for posting it.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform