GDI objects counts steadily increasing

Memory profiling for .NET developers

Moderators: StephenC, Alex.Davies, AndrewH, melvyn.harbour

GDI objects counts steadily increasing

Postby pavelre » Tue Oct 13, 2009 4:38 pm

Hello,

We have situations where the task manager reports steadily increasing GDI counts as the user does something repeatedly, but comparing ANTS memory profiler snapshots shows there is no difference between snapshots.

Looking through class list we do not see any classes related to controls or forms. Is there any GDI object retention graph? Or how we can detect through object retention graph potential GDI objects?

Does the memory profiler have counter for GDI objects? Are there any other counters we can use to get an equivalent of GDI objects of task manager?

We are developing 3.5 .NET WinForm application with Infragistics controls, CAB, and we are hosting WPF control.

Thanks,
Pavel
pavelre
 
Posts: 1
Joined: Tue Oct 13, 2009 4:09 pm

Postby StephenC » Tue Oct 13, 2009 4:53 pm

If you application is leaking GDI handles it could be because some managed objects aren't being disposed.

If you check the filter "On the finalizer queue but not disposed" you may get a list of the objects that are remaining.

Stephen
StephenC
 
Posts: 306
Joined: Mon Oct 15, 2007 9:18 am
Location: Cambridge


Return to ANTS Memory Profiler Previous Versions

Who is online

Users browsing this forum: No registered users and 1 guest