Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing objects?
Message
 
À
08/10/1997 10:46:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00053676
Message ID:
00053755
Vues:
44
>>What's the proper way to release an object? For example, if I :
>>x=Createobject('myobject') where myobject is a class based on the
>>cutom class (and thus, has no Release method built in)? x.Destroy()
>>doesn't work since destroy is an even. I hate using Release x.
>
>Would you like AddObject - RemoveObject?

Well, I suppose this would do the trick. I was more thinking about when I'm
creating the object from a prg, usually for testing purposes. Even when I am
testing I like to do things cleanly. So, when I create an object I would like
that object to be able to release itself. Whether it is a built in release
like that for forms, or if I have to create my own release. I guess my
question should be, how do I create a release method that will release the
object from memory? Just putting 'release this' in the method doesn't work...
then again maybe it is just obvious and everyone is looking at me funny
because it's one of those days...;).

Michael G. Emmons
memmons@nc.rr.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform