Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Message: Cannot modify a class that is in use.
Message
De
22/08/1998 22:51:43
 
 
À
21/08/1998 15:12:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00128709
Message ID:
00129089
Vues:
18
>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,


I have discovered that if I want to edit some of basic classes first I have to "edit" one that holds one of those objects. This seams to force VFox to release some of definitions. Anyway, none of those things helps fully and CLEAR ALL is
only solution if it doesn't crash.

Thanks to all on your suggestions.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform