Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set classlib - and alias in use?
Message
From
15/10/2008 11:04:59
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
15/10/2008 08:09:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01355033
Message ID:
01355142
Views:
34
>>Hilmar,
>>Classlibs are tables and are aliased when opened. Aliases work as handles. It wouldn't cause alias in use error if the same alias is in use as a table alias.
>>
>>AFAIK the only way to get that error is by trying to open a class library with the "same name" but "from 2 different folders". ie:
>
>That is more or less what I suspected. But I didn't find two classlibs with the same name.
>
>This only happens when I run the EXE (in a separate folder); as far as I know, the original classlibs are not accessible; and the project only does not contain several classlibs with the same name.

In Visual MaxFrame there are two ways this is dealt with. One is to remove the pathing from the VCX/SCX files. Once things are compiled in the exe, the pathing is really dumb. Two there is a piece of code we run, x8setcls, which checks SET("CLASSLIB") to see if the class is already open and then does not reopen it.

I do get that error message if I

SET CLASSLIB TO rptuebase.vcx ALIAS Hilmar
SET CLASSLIB TO rptueadvances.vcx ALIAS Hilmar additive
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform