Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set classlib - and alias in use?
Message
From
14/10/2008 21:18:30
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Set classlib - and alias in use?
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:
01355033
Views:
127
On one project on which I am working on a client, certain errors occured only when the EXE and data files was copied to a separate folder, so that's what I did. For debugging, I ran the EXE from the IDE - fortunately, the error still appeared.

Now, to the error that stumps me. In a certain part of the program, I get a "alias name is already in use" error. The line that causes the error turns out to be something like this:
set classlib to SomeClassLibrary additive
Since I suspected that the IDE may be showing me the wrong line number - since this has already happened to me before - I try giving the command from the Command Window - same error message. On the suspicion that the classlib is not found, I invent a non-existent classlib:
set classlib to abcde additive
But I get a different error message, basically, file not found - so that is not the cause.

Now, why would a "set classlib" produce an "alias name is already in use" error? I thought Visual FoxPro would simply add the classlib to the list of classlibs, if it wasn't in the list already. Nor does set("path") point to any folders that might contain additional copies.

I suspected there may be two classlibs with the same name in different folders, but the project only lists one of each.

What else might I check for?

TIA,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Next
Reply
Map
View

Click here to load this message in the networking platform