|
-
Aug 31st, 2008, 02:37 PM
#1
Thread Starter
Lively Member
What is the proper way to destroy an object?
If I understood correctly, when I set an object = to nothing then eventually the garbage collector comes around to destroy the object. However, the variable is still around to be reassigned. What is the right way to destroy an object. Even before the garbage collector comes around. I am creating many objects inside my classes and passing them around so I need to be as efficient as possible. So far all I can do is set them = to nothing when not in use.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|