Hi,i''m experiencing a very weird problem here.I''ve got a ListView, 4 columns and about 300 items. Nothing to worry aboutthere.Now when I scroll up and down repeatedly using the vertical scrollbar, I seethe number of GDI object grow rapidly. Now and then it drops again to about60 which is reasonable.When this number reaches 10.000, all of a sudden, itturns into 4.294.964.397 (more or less).Running the garbage collector manually does not help anymore then.I also noticed that when I run the garbage collector (manually) *before* thenumber reaches 10.000 this problem does not occur.What is going wrong here ? I''m not doing any custom drawing, I don''t evenuse another backcolor, font or whatever. Why does it allocate so many GDIobjects. If I wrote something like a ListView, I would cache some or all ofthe pens and brushes, as in most cases all the rows have similar properties(color, font, ...).I must be missing something. Anybody a clue ?Thanks in advance.Greetings,Bram. 解决方案Which tool are you using to determine the number of GDI objects?--codyFreeware Tools, Games and Humour http://www.deutronium.de.vu || http://www.deutronium.tk about Which tool are you using to determine the number of GDI objects? -- cody Freeware Tools, Games and Humour http://www.deutronium.de.vu || http://www.deutronium.tk 这篇关于很多GDI对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!