Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Releasing objects?
Message
From
08/10/1997 14:41:30
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00053676
Message ID:
00053757
Views:
36
>>>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...;).

I think Dave's remark was reasonable enough.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform