Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Difference and When to use NEW/ADD/CREATEOBJECT()
Message
From
15/04/2004 12:09:12
John Deupree
Long Term Care Authority
Tulsa, Oklahoma, United States
 
 
To
15/04/2004 12:00:14
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00894349
Message ID:
00895185
Views:
20
No problems with it releasing. I was more worried about a memory leak.

>John-
>
>PMFJI...
>
>You're not seeing a problem with your form's releasing? Generally this technique has been a cause of dangling object references in my experience. My habit now is to include clean up code in the destroy(). For example,
>
>*thisform.destroy()
>WITH THIS
>  STORE .NULL. TO .oSrvPlan
>ENDWITH
>
>The construction is just my habit since I may have more than one member I need to .NULL. in the cleanup code.
>
>In the case of member arrays whose elements contain objects, I'm in the habit--based on past experience-- of setting each element to .NULL. before setting the member to .NULL.
Previous
Reply
Map
View

Click here to load this message in the networking platform