c++ - Use all available memory on iPad -


i'm trying make app uses available memory on ipad intentionally bog down can test few other things when there limited memory.

currently i'm using code works, xcode stops me short error can't allocate region. (stops me @ 1.4/4 gb.)

while(1) {     void *m = malloc(1024*1024);     memset(m,0,1024*1024); } 

i want use memory can, , hold onto memory until stop. there better way go this?

try use mmap map_locked


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -