[SDL] Array size limit?

Anttoni Jaakkola anttoj at saunalahti.fi
Mon Feb 12 00:54:47 PST 2007


Hello,

I'm sorry to bother you because I'm sure my question has been already 
answered somewhere but I just can't find the answer. So here's the question:

Is there some kind of a limit in SDL for the amount of memory that can 
be allocated? I'm trying to allocate space for double[57000000] (don't 
ask why) but it causes an access violation/segmentation fault. Even 
double[270000] seems to be too much. Without SDL I can easily allocate 
the memory I need (actually about 453 megabytes of it). I've tried 
allocating the memory both statically and dynamically.

Thanks in advance.

Anttoni Jaakkola


More information about the SDL mailing list