Re: [ADVANCED-DOTNET] count strong references

2002-10-17 Thread Thomas Tomiczek
-DOTNET] count strong references hi, i would like to count the strong references to an object. in my framework there is one collection which holds strong references to objects. i would like to remove those objects which have no foreign strong references. that means when i remove these objects they

Re: [ADVANCED-DOTNET] count strong references

2002-10-17 Thread Simon Smith
ly as complicated as trying to count stongs refs. Simon -Original Message- From: Christian Schmitz [mailto:csh@;GEDAS.DE] Sent: Thu 17 October 2002 14:07 To: [EMAIL PROTECTED] Subject: [ADVANCED-DOTNET] count strong references hi, i would like to count the strong references to an object.

Re: [ADVANCED-DOTNET] count strong references

2002-10-17 Thread Trey Nash
Hi, Maybe you can achieve the effect you want by only putting weak references to those objects in your collection. Then, you could iterate over your collection periodically looking for dead weak references and purge those then. Of course, you may have to have some sort of management appended to

[ADVANCED-DOTNET] count strong references

2002-10-17 Thread Christian Schmitz
hi, i would like to count the strong references to an object. in my framework there is one collection which holds strong references to objects. i would like to remove those objects which have no foreign strong references. that means when i remove these objects they are garbage collected by the do