April 8, 2005

Massive GDI-Leak in ListView in Windows-Forms (1.1SP1)

While searching in our large Windows-Forms app for an “OutOfMemoryException” I found a large GDI-Handle leak in ListVView while scrolling the ListView.

If you insert into the ListView about 20 columns and 500 rows and the do (horizontal) scrolling, then you will see that GDI-Handles will increase to a very high value (some thousends). Sometimes it drops to about 100 and then it increases agein (while scrolling). If I do fast scrolling for about 20 seconds, then task-manager will show an overrun and displays a very largevalue):

The problem does not occur with the native ListControl (tested via MFC-Testproject).

Demo-Projects are available here:
Windows-Forms-Testproject
MFC-Testproject


Posted 2 years, 9 months ago on April 8, 2005
The trackback url for this post is http://blog.kalmbachnet.de/bblog/trackback.php/36/

Re: Massive GDI-Leak in ListView in Windows-Forms (1.1SP1)
Hi! I am facing a similar problem when I use the .net listview control. did you find any solution to this?
Posted 2 years, 8 months ago by Sus • • • Reply
Comment Trackback URL : http://blog.kalmbachnet.de/bblog/trackback.php/36/64/

Comments have now been turned off for this post