Joel Mueller wrote:

> Maybe I'm misunderstanding the documentation, but it seems to be saying
> that if I have a weak reference to an object, the GC doesn't see that
> object as any different from an object to which I have no reference,
> even though I might want it to leave weak-referenced objects alone
> unless memory pressure requires them to be collected.

That is precisely the way the weak references work. They will stay in memory
until a GC. And unless someone explicitly calls for a collection, then they
won't disappear until you need more "breathing room" (which causes the
automatic collection).

So, am I misunderstanding your problem perhaps?

Brad

--
Read my web log at http://www.quality.nu/dotnetguy/

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to