My app uses the MSFlexGrid control into which a number of thumbnails are loaded. Each of these thumbnails is 24-bit and around 14k in size.
Prior to being loaded into the FlexGrid, the thumbs are loaded into an ImageList control. This is because the user can drag and drop within the MSFlexGrid to re-arrange the order of the thumbs (saves me from reading the .bmps back in from the HD).
I have an error handler that displays an 'Out Of Memory' .bmp which is displayed in the MSFlexGrid when appropriate instead of the thumbnail. This is stored only once in the ImageList.
My old PC (an AMDK6 233Mhx PII, 32MB RAM) would load about 350 thumbnails
before it began to use the 'Out of Memory' .bmp.
Last week I took delivery of a new PIII 600Mhz machine with 128MB RAM and the same thing happens, i.e. c350 thumbs succesfully loaded before 'Out of Memory' .bmp kicks in.
The question is, what is governing the amount of thumbs I can succesfully load into the FlexGrid? It doesn't appear to be related to the spec of my machine.