Re: Simple question on memory behavior
From: Tyson Brown (tyson.brown.REM0VE_at_sbcglobal.net)
Date: 05/10/04
- Next message: Anthony Moore: "Re: use the UIPermissions to disable the print screen key"
- Previous message: saurabh: "Re: Avoiding Memory Leaks, debugging, measuring Performance"
- In reply to: Mattias Sjögren: "Re: Simple question on memory behavior"
- Next in thread: Brian Tyler: "Re: Simple question on memory behavior"
- Reply: Brian Tyler: "Re: Simple question on memory behavior"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 10 May 2004 10:11:06 -0700
Mattias,
Thanks for responding.
>>> a) If so, does this mean that tmpPage object lasts the duration of the page too, regardless of Line5?
>> No.
Could you explain this? I had always thought that assigned on ref type to another variable or property, would keep the original object around because the GC says, "sorry there is still information in use, I can't clean you up, try Gen 1 (or God forbid, Gen 2)". Is this wrong? By marking the object as null, even though the value still exists in memory through another pointer, the original object is indeed collected?
I apologize for the ignorance, I am just really trying to get my brain around this and understand GC.
Thanks,
Tyson
- Next message: Anthony Moore: "Re: use the UIPermissions to disable the print screen key"
- Previous message: saurabh: "Re: Avoiding Memory Leaks, debugging, measuring Performance"
- In reply to: Mattias Sjögren: "Re: Simple question on memory behavior"
- Next in thread: Brian Tyler: "Re: Simple question on memory behavior"
- Reply: Brian Tyler: "Re: Simple question on memory behavior"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|