Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's happening here ?
Message
De
26/02/2005 10:15:52
 
 
À
26/02/2005 05:01:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Divers
Thread ID:
00990234
Message ID:
00990873
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform