Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Forms not releasing themselves or their datasessions
Message
 
À
23/06/1997 22:37:41
Jon Ziegler
Mannesmann Dematic Corp.
Solon, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00036724
Message ID:
00037844
Vues:
48
>>>>>I am experiencing some extremely frustrating problems in VFP 3.0b. Randomly, forms that I have created within an application will not close... > >>>>I'm using Vfp 5.0a here and I'm also facing this problem. What is worse is that it really seems to be randomic (I have never seen such a problem before)... > >>It really looks like there are some object references that are still pointing to your object. For this reason, objects remain in memory, but you can usus\ally not talk to them anymore. In VFP3, a construction like this often leads to GPFs too. If that might be the case, then I can give you more advise how to deal with that... >> >>Greetings >>Markus >>MS MVP > >Yes, I have gotten quite a few GPFs. I recently added a simple ON SHUTDOWN program which does a RELEASE ALL and a CLEAR ALL and the stubborn forms do indeed close in the .EXE file running on it's own (as opposed to running from within the VFP command window) and I can shutdown my application without using CTRL+ALT+DEL and "End Task". Is there an easy way to obtain all object references? I've done a DISP MEMO TO , but can't seem to find the needed item to RELEASE. > >I can't remember the exact details of the GPF messages, but can obtain them if it could be of help in a possible solution to this problem (and you're willing to help a struggling FoxPro programmer, of course). There is no easy way to get rid of all object references. As long as you only use variables as pointers, try to make them local so that they go out of scope. Also, a XXX.Release should clean up all the variable references. But it gets more tricky as soon as you use properties as references, because then you can not assume that XXX.Release cleans up everything. As a general rule, make sure to clean up all your references by yourself. I know it's a PITA, but... Greetings Markus




Markus Egger
President, EPS Software Corp
Author, Advanced Object Oriented Programming with VFP6
Publisher, CoDe Magazine
Microsoft MVP since 1995
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform