Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'alias is not found' error message
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00179808
Message ID:
00180148
Views:
29
Mat,

>My application is generating two 'alias is not found' error messages when the user exists. These errors only occur under the following scenerio.
>
>1. They have the main form open (based on cbizobjnolistmainform)
>2. They open a second form (based on cbasemodalform) and then close it
>3. Instead of closing the main form first, they click directly on the exit icon
>
>These errors do not occur if the second form is never opened or if they close the main form first before exiting the application. If I choose ignore to the error messages, the application ends. If I choose cancel, I am left in the setup.prg at the CLEAR ALL statement.>

It sounds like the problem definitely lies with the second form. How are you opening / closing tables for this form? Another possible issue is a dangling object reference. You can get the "Alias not found" message from VFP if it tries to destroy a form, but some other code in your app has a reference to the form (or an object on the form) that has not been released. In this scenario, the form's data is successfully closed, but the form and its controls are not released and since the bound controls no longer have access to the data source, you get the error.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform