Re: Removing Objects from Memory VFP 9.0

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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.

.



Relevant Pages

  • Removing Objects from Memory VFP 9.0
    ... CREATEOBJECTas my error processor. ... This process sets up the ON ERROR statement etc... ... I Execute This.oErrorObject.Destroy where the ON ERROR is reset ... The ErrorClass remains in memory. ...
    (microsoft.public.fox.vfp.forms)
  • Re: Is There Any Reason to Even Use VC++ Anymore?
    ... pointer if you own it and a reference if owned externally is broken (not ... especially if this number is only limited by available memory or dictated ... It doesn't know if A still exists, so it can't destroy X. ... Note that A is the allocator of X, but can't be the destroyer if A goes away ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Memory added but not all being recognized
    ... I've mostly got IBM Made in Canada along with some Made in Italy and good ol' Made in Czech Rep. ... I am refering to the SP menu and Under System Information I can list the memory that the system shows as Configured or Deconfigured. ... than the intended recipient is unauthorized and may be illegal. ... delete this e-mail and destroy any copies. ...
    (AIX-L)
  • Re: (OT)Kissing Robot (from Japan, natch)
    ... guarantee that she won't destroy the universe? ... do I have any guarantee that she ... Will her memory will be wiped if she fails her trial deployment? ...
    (rec.arts.anime.misc)
  • IGlobalInterfaceTable caller threads lifetime importance
    ... The last small non-fatal issue required me to destroy a context object, ... "The apartment that calls RegisterInterfaceInGlobal must remain alive until ... Does IGlobalInterfaceTable reclaim that memory after returning ...
    (microsoft.public.vc.atl)