Not using ResizeImage makes no difference, the problem still occurs.
I will do some more testing on another format over the weekend - need to convert 10,000 JPEG's to some other format to do this properly!
The errors indicate the app is out of memory, but only 110MB is allocated, well below the 2GB limit of a 32-bit app. So this suggests it is out of stack space. I've tried increasing this but the problem still occurs at roughly the same place which would suggest it isn't this.
I've run the app through a leak checker and there are no leaks.
The only other possibility is memory fragmentation, causing the memory manager to eventually be unable to allocate one large chunk of memory. Not sure what can be done about this short of pre-allocating memory to load the images in.
I said that the problem doesn't occur outside of threads, this is not true, it does. It just takes a lot more images to create the problem - which again points to memory fragmentation.
I'll keep trying different methods of using the library and see if there is a better way of doing it. I am currently creating a new thread for each image, and within this thread a new set of calls to Vampyre.
This is obviously not the best way of doing it as this will clearly cause a lot of fragmentation. I think I need to move to 8 static threads with only 8 image objects.
Will let you know how I get on.