Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot modify a class that is in use
Message
 
À
12/11/1999 13:19:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00290587
Message ID:
00290672
Vues:
23
Erik,

Related question:
I've seen cases where the classlib is definitely closed, in fact VFP is closed. However, copying a backup copy of the classlib into the test dir does not work. It says the file is in use. Now the production directory is open by other people, but not the test dir. Could it be because the classlib in both the test and production directory inherit from a parent classlib elsewhere? In other words, the production library has the parent library open, so the test library cannot be updated since it is based on the parent library which is open? Confused yet? I am. I know that if we get everyone out of the test and production libraries, the backup class library will successfully copy.

FWIW, We've been trying to track down what prevents the test library from being updated for quite awhile.

Mike

>>This may be pretty basic but look at your SET("CLASSLIB") value after tanking the form. If there is a reference to the class library you won't be able to edit it.
>
>This isn't true. SET CLASSLIB merely gives VFP a choice of libraries to choose from when using CREATEOBJECT. It does not hold a reference to any object, or open the classlib file.
>
>Roi- as far as I can tell, this behavior stems from VFP holding a class definition in memory, and there is nothing we can do about it except CLEAR ALL or CLEAR CLASS.
Michael P. Antonovich, MCSD
Email: mike@micmin.com
MicMin Associates - Orlando, FL


Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform