Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot access selected table
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00097895
Message ID:
00098038
Views:
53
>>Hi,
>>
>>When in a form based on cBizObjMaintenanceForm, I have a ComboBox based on a view (another BizObj) and I click on the "Close" toolbar to close the form I always get this error. If I have 3 ComboBox (with RowSourceType = 6) I got 3 errors.
>>
>>Anyone had this problem before ? How are you implementing this ?
>>
>
>This error is typical of a "dangling" object reference.
>
>If you have a dangling object reference, a form cannot be released. You may not realize the form has not been released because the CBaseForm.Destroy() method sets the Visible property of the form to .F. to make the form disappear more quickly.
>
>To see if this is your problem, you can temporarily comment out this line of code and see if the form is getting released. If it is not, it almost always means you have a dangling object reference that needs to be released.
>
>Regards,

Kevin,

I've seen this problem (and been the victim) more times than I care. Maybe you could add some debugging flag that would prevent CBaseForm.Destroy() from setting the Visible property to FALSE? Or maybe a new property called FastClose and default it to TRUE?

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform