The game randomly crashes with the error “Uncaught std::exception: bad allocation
”
Your computer ran out of free memory. Some potential solutions:
- Close all unnecessary applications while running the game.
- If your computer has been running for a long time, reboot it.
- Add more memory (RAM) to your computer.
If the problem persists, you can ask the game to defer loading resources (graphics, music, sound, etc.) until they are actually needed. This will save some memory, at the cost of slight pauses/stutters every time a new enemy appears, or a new sound effect is played. You computer will still eventually run out memory, but you’ll be able to play longer until it does.
Go to C:\ProgramData\InterAction studios\CIU\ia\xxx
(where xxx is the latest version) and edit the file CIU.cfg
with your preferred text editor. Change the line that starts with loadMode
to read:
loadMode=2
Note: The CIU.cfg
file is reset with every update. You’ll need to re-apply the changes every time a new version is released.