I got this error message.

Error in .local(.Object, ...) : 
        GDAL Error 2: CPLRealloc(): Out of memory allocating 16 bytes

I was trying to read 1388 jpg images (993x993) with rgdal in a loop, to store data in a data.frame. It fails to read the 1338 image.

Isn't R recycling the object?

I'm running this process in a Server machine with Win XP x64, Xeon processor, 4GB Ram. R is running with default configurations.

Can I change memory allocation to increase storage capabilities or this specific error have nothing to do with this? 

	[[alternative HTML version deleted]]


