Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When are in use?
Message
De
14/06/2000 22:12:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00379913
Message ID:
00380550
Vues:
18
>3. To pack, I tried to open the VCX exclusively, and failed... Further research showed that running an application that uses the class library (class excluded from the project) will get the VCX in use, and will not release it until quitting VFP!!! Exitting the form, or the application will NOT release the VCX. Is this normal behaviour?

Ok, I just hit the same problem today, getting an error 3 (File in use) when opening a VCX up exclusivly. I got around the problem by issuing CLEAR CLASS MyClass, even though the first time I saw the command in the Hacker's Guide I thought I read it doesn't work at all. Then I read it again, and I still think its wrong, but I didn't spend more than a minute looking at it. Here's an example (recgonize the class, Koziol? ;-)

oVulcan = newobject('vulcan', 'startrek')
release oVulcan
use startrek.vcx &&Opens fine
use startrek.vcx excl && Error 3, file is in use
clear class vulcan
use startrek.vcx excl &&Opens up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform