@prandam wrote:
I’m loading a list of URL as images in a vector using ofxThreadImageLoader
The problem is when I’m trying to upload more than 12 images --I get a memory alloc error. How can this be? I have 16GB RAM and 8GB GPU --the images are JPGs of around 2MB each, even uncompressed in memory won’t be that much, isn’t. I already loaded some CVS and text files and usually in memory/screen there are six layers with images, that’s it.ofxThreadedImageLoader loader; vector<ofImage> mempic; mempic.clear(); mempic.reserve(2000); // loads to memory the final image list - the problem is when numpix is greater than 12 or so. for (size_t i = 0; i < numpix; i++) { mempic[i].clear(); loader.loadFromDisk(mempic[i], mempicfiles[i]); }
Posts: 1
Participants: 1