Re: Removing Objects from Memory VFP 9.0
- From: Jack Jackson <jacknospam@xxxxxxxxxxxxxxx>
- Date: Fri, 01 Dec 2006 21:36:59 -0800
On Fri, 01 Dec 2006 20:09:29 -0500, leejefferies@xxxxxxxxx wrote:
In the Init event of a form, I execute "this.oErrorObject =
CREATEOBJECT("cErrorClass") as my error processor.
cErrorClass's baseclass is Custom.
This process sets up the ON ERROR statement etc...
At Form Unload, I Execute This.oErrorObject.Destroy where the ON ERROR is reset
to the value at form initiation. It all seems to work OK.
Problem: The ErrorClass remains in memory. When I want to modify the class,
project manager asks if I want to remove the class from memory.
Question:
1) How do display classes in memory?
2) How to remove the class programmatically?
This probably isn't relevant to your question, but you shouldn't be
calling the object's Destroy method.
You cause an object (except for forms) to be destroyed by clearing all
pointers to the object. At that time VFP will call the object's
Destroy event. When the form is destroyed all of its properties are
destroyed with will cause your object to be destroyed. To cause the
destroy to occur earlier, store something else (like .NULL.) into
Thisform.oErrorObject.
.
- Follow-Ups:
- Re: Removing Objects from Memory VFP 9.0
- From: leejefferies
- Re: Removing Objects from Memory VFP 9.0
- References:
- Removing Objects from Memory VFP 9.0
- From: leejefferies
- Removing Objects from Memory VFP 9.0
- Prev by Date: Re: Removing Objects from Memory VFP 9.0
- Next by Date: Re: Removing Objects from Memory VFP 9.0
- Previous by thread: Re: Removing Objects from Memory VFP 9.0
- Next by thread: Re: Removing Objects from Memory VFP 9.0
- Index(es):
Relevant Pages
|