Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GarbageCollector
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
GarbageCollector
Divers
Thread ID:
00797590
Message ID:
00797590
Vues:
44
Hi friends,

*-- Now this is instance behavior so
*-- Your method starts mere with DoDefault()
*-- Now clean up situational artifacts at this level
This.oPointer1 = .NULL.
This.oPointer2 = .NULL.

What is meant by oPointer1 and oPointer2.

failed to understand mentioned above lines in the mentioned below piece of code.
PROCEDURE Release
  *-- This is base class behavior.
  This.GarbageCollect()
  Release This

PROCEDURE GarbageCollect
  *-- This is base class behavior.
  *-- If this object is some sort of container
  FOR EACH oControl IN This.Controls
    IF PEMSTATUS(oControl, "GarbageCollect", 5)
      oControl.GarbageCollect()
    ENDIF
  ENDFOR

  *-- Now this is instance behavior so
  *-- Your method starts mere with DoDefault()
  *-- Now clean up situational artifacts at this level
  This.oPointer1 = .NULL.
  This.oPointer2 = .NULL.

PROCEDURE DESTROY
  This.GarbageCollect() && Only to be sure it gets called
  DoDefault()
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform