I have made a dialog based application in vc2008, in that application i have created a list control. In that list control i am displaying file names from a particular folder......
suppose folder contains 2500 files and allfiles are bmp type, i am also displaying system icon(which is picked up from system at runtime only) in front of every file.
Now the problem is as soon as i click on adding file to my list control only border of my list ctrl is displyed and everything becomes white and after some time not responding status is being shown and after some time application crashes. i have monitored its memory usage from task manager it exceeds very fast and its very high...
i am not getting how to resolve it and infact what exactly the problem is...
Youre possibly running into the limit of GDI Handles. There are only some 10000 available and an icon uses 4 as far as I remember.
Check with taskmanager.
Kurt
I have made a dialog based application in vc2008, in that application i have created a list control. In that list control i am displaying file names from a particular folder......
suppose folder contains 2500 files and allfiles are bmp type, i am also displaying system icon(which is picked up from system at runtime only) in front of every file.
Now the problem is as soon as i click on adding file to my list control only border of my list ctrl is displyed and everything becomes white and after some time not responding status is being shown and after some time application crashes. i have monitored its memory usage from task manager it exceeds very fast and its very high...
i am not getting how to resolve it and infact what exactly the problem is...
Bookmarks