Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Message: Cannot modify a class that is in use.
Message
De
21/08/1998 15:12:25
 
 
À
21/08/1998 07:12:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00128709
Message ID:
00128892
Vues:
15
After running and closing form (defined in VCX) I am not able to edit some or all of classes contained in that form. Sometimes even for the form I get same message. There are no instances of those object in memory (well at least shown in debugger or with DISPLAY MEMO), but SYS(1016) shows very high memory useage for users objects!!! Is this happening to others and how to avoid CLEAR ALL every time after testing forms?

Tomislav,

Try putting something like SET CLASSLIB TO in the release event of your form. What is probably happening is that the class library that contains your custom control classes is not releasing when you destroy the form. Issuing a SET CLASSLIB TO will close all class libraries. If you know you want to leave some class libraries open, just remove the ones you do not want open with the RELEASE CLASSLIB command.

If you are exiting the entire application, you will probably want to issue a RELEASE ALL and CLEAR ALL in your exit routine.

The codicil is, if you do all this, and your form has an error in it, there is still the possibility that a control object will hang up and cause the familiar "Cannot modify class in use" error. Then try SET LIBRARY TO, RELEASE ALL, CLEAR ALL in that order in the command window to clear things up.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform