|
-
Apr 15th, 2003, 10:20 AM
#1
Thread Starter
Addicted Member
Easy one
If I write:
dim tmpObj as Object
.... do something with tmpObj
' and than
tmpObj=Nothing
Did last line of code release resources used by tmpObj?
regard j
-
Apr 15th, 2003, 10:37 AM
#2
PowerPoster
Basically, the gc will look for unattached roots (orphaned references) on the heap. As long as there is no other references to the object (in this example, there isn't), the garbage collector will deallocate its memory on the next cycle.
-
Apr 15th, 2003, 10:40 AM
#3
Fanatic Member
It only marks it for the GC as ready to be collected. When the GC runs, it will release resources.
-
Apr 15th, 2003, 10:58 AM
#4
Thread Starter
Addicted Member
-
Apr 15th, 2003, 11:00 AM
#5
Sleep mode
aaah this would end in endless discussion .Better you check previous threads for further info.
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
|