I agree - this wouldn't at all cause something to not be collected.
The original poster should be able to use one of the existing tools
(Scitech's Memory Profiler, Red Gate's Memory Profiler, heck - even WinDbg
with SOS can do this), walk the root paths, and see why his object wasn't
collected. It should be pretty easy.
The tools have recently started getting so very good. Red Gate & SciTech now
have x64 support, SciTech can load in MiniDump files so you can do
post-crash memory analysis - it makes debugging so much easier than it used
to be.
--
Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
http://www.coversant.com/blogs/cmullins [quoted text, click to view] "Peter Ritchie [C# MVP]" <PRSoCo@newsgroups.nospam> wrote in message
news:202838C4-18F4-4B86-9084-416323FF988B@microsoft.com...
> That shouln't cause a particular object to not be collected though.
>
> My interpretation of "memory leak" could have been different than yours or
> Ward's. Mine what that a particular object wasn't collected... I don't
> pay
> attention to usable space as an indiciation of memory leaks. Due, as you
> say, to fragmentation...
>
> --
> Browse
http://connect.microsoft.com/VisualStudio/feedback/ and vote.
>
http://www.peterRitchie.com/blog/ > Microsoft MVP, Visual Developer - Visual C#
>
>
> "Chris Mullins [MVP]" wrote:
>
>> "Peter Ritchie [C# MVP]" <PRSoCo@newsgroups.nospam> wrote
>> > I can't think of any reason why the GC won't collect all inaccessible
>> > memory.
>>
>> The only thing that comes to mind is fragmentation.
>>
>> GC.Collect typically does the collection and them performs a compaction.
>> When the heap is fragmented, that compaction doesn't work very well, and
>> you
>> can end up without much "free" memory...
>>
>> --
>> Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP
>>
http://www.coversant.com/blogs/cmullins >>
>>
>>