Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to clean up leftover Objects?
Message
De
25/03/2010 17:07:24
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to clean up leftover Objects?
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01457283
Message ID:
01457283
Vues:
131
I've written some code in a prg that creates an instance of a business object class, then runs some tests on the Obect.

In the code I declare a public loBo variable to hold the object so I can make further use of it from the command window if I wanted to. After further testing, I RELEASE loBo, then I try to open the parent class of the class I tested so I can edit it, but it says: "Remove classes from memory?" and I click "Remove", then it says "Cannot modify a class that is in use".

If I continue the process of trying to open it for about 3 or 4 times, it will finally open it up. So I know that when I click "Remove" that each time it is killing an object reference, and eventually, every thing get released and it will finally open it. I'm sure it a case of there still being object references hanging around in the class I created, and I will find and fix that issue...

However, I wondering how I can determine, from the VFP IDE, what all variables or objects references are hanging around in the VFP environment. Surely there is a way to see what object references are alive in VFP at any given time. This would help me spot where the problem is, rather than me having to dig all around in my code trying to spot the problem.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform