Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form won't release because of object reference?
Message
From
01/05/1997 22:36:38
 
 
To
01/05/1997 13:59:31
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00030164
Message ID:
00030560
Views:
63
>What would happen if you put a statement like: > >This.oMyChildObject = .NULL. > >in the Destroy() event of the "parent" object and > >This.oMyParentObject = .NULL. > >in the Destroy() event of the "child" object? Those should both fire before >the Form is actually destroyed. Or even better, how about: > >WITH Thisform.txtOriginal >.oMyChildObject.oMyParentObject = .NULL. >.oMyChildObject = .NULL. >ENDWITH > >in the QueryUnload() or Release() methods? That would destroy those >references before the real objects ever got destroyed. > >By the way, why are you doing this particular textbox creation, anyway? >(backpedaling even further...) From the session I attended this afternoon, I asked the speaker about that situation, and I was told that most of this bug or "by design" thing has not been fixed. It seems that is something we need to take care of and what you described to putting .NULL. is the first thing to do. However, we need to add RELEASE This.oMyParentObject as well because .NULL. is not suffisant. We need to release the object from memory. Putting it in the Release() is the place to go.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform