Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove class from memory
Message
 
 
À
14/06/2002 20:10:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00668826
Message ID:
00668827
Vues:
18
This message has been marked as the solution to the initial question of the thread.
>When an EXE calls another EXE such as Main.exe calling Sub.exe, I would like to know the proper way to cleaning a class from memory. In Sub.exe, I have a DEFINE CLASS... As soon as one CREATEOBJECT() is done on that class, the EXE remain locked in memory.
>
>My DEFINE CLASS is like this:
>
>
>DEFINE CLASS MyClass AS RELATION
>cProperty1=''
>cProperty2=''
>
>FUNCTION Method1
>ENDFUNC
>
>ENDDEFINE
>
>
>Then, when I call this class from Sub.exe, it goes like this:
>
>
>LOCAL loMyClass
>loMyClass=CREATEOBJECT('MyClass')
>loMyClass.Method1()
>
>
>So, the loMyClass is local. Basically, as soon as the process is over, loMyClass it out of memory. However, something gets stuck in it in regards to the class. What am I missing?

Did you try CLEAR CLASS command?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform