PDA

View Full Version : virtual memory exhausted



kamlmish
25th January 2011, 11:25
Hi
I have around 2300 images , that I am importing to a .qrc file (resource file)
but when I build the application , I get error
"virtual memory exhausted, cannot allocate memory"

I tried the following
1) Changed the vm.max_map_count to 1GB (screenshot_mapcount)

but that doesnt work ,
anyone has any idea on how to fix it.

Lykurg
25th January 2011, 11:59
anyone has any idea on how to fix it.Yes, do not include 2300 images in your executable! The resource system is only for a small amount of images! How big are your images combined?

daemonna
25th January 2011, 13:21
omg, at least put them in folder (not qrc) and load them on demand if you're not using DB...

kamlmish
27th January 2011, 06:11
Got the solution

I created a ini file and used QSettings in order to import all the images.

Thanks for all your support