Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Image cannot be added to the ImageList

$
0
0

I'm writing an application in C# 2.0 that will index several thousand icons and add them to a DataTable (for quick searching) and ListView control.  When I test it at home on my XP machine it works great.  It takes about an hour to index 125,000 images (ico, png, gif). 

I tested it at work on win2k and I kept getting this exception: "Image cannot be added to the ImageList".  I only get this error after it indexes 4088 images.  Always 4088...  I searched google, google groups, MS forums - nobody mentions this exception. 

Does anyone know what my problem is?  Does win2k have a 4088 item limit per imagelist or something or am I running out of memory?  If it was a memory issue, I would assume the exception would mention something about being out of memory (instead of being so incredibly vague), plus Task Manager doesn't say it's using a whole lot of memory. 

Thanks in advance!

-Adam


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>