>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement