Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GarbageCollector
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
GarbageCollector
Miscellaneous
Thread ID:
00797590
Message ID:
00797590
Views:
45
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
Next
Reply
Map
View

Click here to load this message in the networking platform