Home All Groups Group Topic Archive Search About
Author
16 Dec 2005 3:28 PM
John.Luckowsky
Hello all,

I've just found the issue that really scares me. It seems that ListView
doesn't release some GDI objects. Here you are steps to reproduce the
problem:

1. Run Task Manager
2. View->Select Columns
3. Check "GDI Objects", press OK
4. Run Visual Studio 2k3
5. Create new Window Forms application
6. Put into the form "ListView" and enter 5 items.
7. Run Application
8. Force application to refresh (e.g. move another window above this
application)

You will see that GDI objects increase really fast. The same situation
with Add/Remove items, GDI objects still increas. I've noticed that I
can increase it number even till 10k and after that application starts
to glitch.

It seems that the problem can be solved after:

GC.Colelct();

But this is *really* bad solution which significant impacts to the
performance of application.

Any ideas?

Thank you,
John

Author
17 Dec 2005 7:24 AM
Lloyd Dupont
jusrt did that with VC# Express (.NET.20) and I didn't see any GDI object
leak...

<John.Luckow***@gmail.com> wrote in message
Show quote
news:1134746896.103161.238010@o13g2000cwo.googlegroups.com...
> Hello all,
>
> I've just found the issue that really scares me. It seems that ListView
> doesn't release some GDI objects. Here you are steps to reproduce the
> problem:
>
> 1. Run Task Manager
> 2. View->Select Columns
> 3. Check "GDI Objects", press OK
> 4. Run Visual Studio 2k3
> 5. Create new Window Forms application
> 6. Put into the form "ListView" and enter 5 items.
> 7. Run Application
> 8. Force application to refresh (e.g. move another window above this
> application)
>
> You will see that GDI objects increase really fast. The same situation
> with Add/Remove items, GDI objects still increas. I've noticed that I
> can increase it number even till 10k and after that application starts
> to glitch.
>
> It seems that the problem can be solved after:
>
> GC.Colelct();
>
> But this is *really* bad solution which significant impacts to the
> performance of application.
>
> Any ideas?
>
> Thank you,
> John
>

AddThis Social Bookmark Button