Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems releasing a class
Message
 
 
To
11/07/2000 11:50:19
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00390393
Message ID:
00390805
Views:
9
>>I've experienced this problem when I have forgotten to clear object references. If you assign object references to a property of your application object and don't clear it by setting it to .NULL., VFP could hang trying to clear out the memory.
>>
>>Just a thought.
>
>This is the case with my registry class, it is assigned to a property of my application object, and now when I set it to NULL in the closeApp method it works fine.
>But suppose you have a program error and you want to step out of the program without being able to trigger the CloseApp method where you set object references to Null?

Add it to the Destroy event of your application object or call a custom method from the Destroy method. This way, even if you clear all, as soon as the application is released, it will set its property to .NULL. itself.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform