PDA

View Full Version : My program wont run because it runs out of memory



ayanda83
27th April 2015, 17:58
hi there guys. my program sudden doesn't run because of this error11138. I don't know if I am running out of memory because I have a resourse file with 24MB worth of png image or is it maybe bacause I am loading all those images into a custom model to display them in a QListView. any advise would greatly be appreciated.

anda_skoa
27th April 2015, 18:36
Well, it looks like the program running out of memory is the C++ compiler, not your program.

Check the compile output to see which file it is processing when that happens.

Cheers,
_

ayanda83
27th April 2015, 18:57
It seems this happens when the compiler processes the resource file but there is nothing to explain what exactly is the problem. please see compile output here11140

anda_skoa
27th April 2015, 19:29
Maybe try splitting the resource file into several smaller ones.

For whatever reason it tries to allocated over a gigabyte of memory when processing the current file.

Cheers,
_