Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's happening here ?
Message
From
26/02/2005 10:15:52
 
 
To
26/02/2005 05:01:38
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
00990234
Message ID:
00990873
Views:
20
Hi,

Even odder. So:
CLEAR
x = CREATEOBJECT("c1")
x.o = .NULL.  && Does nothing
x = .NULL.   && Fires C1.Destroy() but it's still there
? "RELEASE THE CLASS FROM MEMORY"
CLEAR CLASS c1 && this relase the class memory image


DEFINE CLASS c1 AS CUSTOM
  o = CREATEOBJECT("c2") && this put a c2 reference into the C1 class MEMORY image
  PROCEDURE DESTROY()
    ? "C1 Destroy"
  ENDPROC
ENDDEFINE

DEFINE CLASS c2 AS CUSTOM
  PROCEDURE INIT()
    ? "C2 Init"
  ENDPROC
  PROCEDURE DESTROY()
    ? "C2 Destroy"
  ENDPROC
ENDDEFINE
Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform