Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Destroy object reference
Message
From
08/04/2002 10:44:01
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
08/04/2002 10:38:19
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00642179
Message ID:
00642195
Views:
14
Thanks.

I am not sure about one detail: Wouldn't it be safer to release the object reference earlier?

Hilmar.

>Hello Hilmar,
>
>I'd say Unload(), 2nd choice would be destroy(). Unload() is the last method to fire (besides DE events).
>
>The release() method does not always fire (if the user clicks on the 'X' to close, for example). QueryUnload() is the place to determine if the form should be allowed to close.
>
>>In a form, I want a property to refer to an object on the same form. I understand I have to do some cleaning-up, by setting this property to .NULL., for instance, before closing the form.
>>
>>My question is: what is the correct method to put this? Destroy? Release? QueryUnload?
>>
>>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform