Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I trace 'Alias name is already in use.' in an .ex
Message
 
To
20/02/2001 13:27:45
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00477701
Message ID:
00477752
Views:
26
>I have an MM project that runs okay inside VFP but when I compile it as an .exe I get the 'Alias name is already in use.' message when it dies, which is as soon as I try to run reports. I think this may be an OO problem that I am creating.
>
>With objects are the alias names assigned when the program loads instead of when a specific method is actually called? I have many methods that use the same name for temp cursors and files and I wasn't worried about the duplication because the methods erase this data before closing.
>
>Do I have to have uniques aliases for my temp file in every method in the project? If so, does anyone have any good ideas about naming conventions for these files? Why doesn't the error fire when I run inside VFP? If I can't get the error to happen in VFP how do I trace?

Don't know about MM specifically, but you could try to trap for Error 24 or add a code checking if alias name is already in use (IF USED("myalias") )
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform