Post news RSS The Out Of Memory Error Crash Is Fixed

I know that a lot of people are annoyed at the "out of memory" error crashes. This seems to happen on any maps bigger than a Large map and when the game trys to auto save. Thanks to the hard work of Snapshot_9, he has found a solution to this problem.

Posted by on

I know that a lot of people are annoyed at the "out of memory" error crashes. This seems to happen on any maps bigger than a Large map and when the game trys to auto save. Thanks to the hard work of Snapshot_9, he has found a solution to this problem.

First of all the problem is with how the game was designed. PC games have 32bit and 64bit support. 64bit has no memory limit, however, 32bit does! Gal Civ is one of those 32bit programs. This means it will use up to 2Gb of ram at MOST. It will only exceed this when it saves as thats the largest memory usage and only on big maps.But Snapshot_9 has found a way around this, one that allows the game to use 3Gb of Ram, and to be frank, if your using under 2Gb of ram you shouldnt be playing any maps over large. So this fix will only work if you have 2Gb+ of ram and at least 1Gb virtual memory.

So here is the fix. Create a shortcut, not to the launcher but to the direct .exe (should be called GC2TwilightofTheArnor.exe then right click and go to properties. The in the Target line, go to the end, put a space and add the command prompt: "/LARGEADDRESSAWARE" with no inverted commas. so the prompt should look like this:
"D:\Program Files\GalCiv2\Twilight\GC2TwilightOfTheArnor.exe" /LARGEADDRESSAWARE

Just subtitute whatever drive your using.If you have problems with this Im sure Snapshot_9 can help you. And once again we should all be thankful that he found the solution to this annoying problem.

And here is another idea from German2010:

ok here is how you can avoid the crashes on immense maps with WIN XP 32 BIT while you save and the game crashes... but you need 3-4 GB of RAM i have 4 GB. Here is how you can fix the crashes...

1. Download and install: the CFF Explorer: (Explorer Suite III)

2. Make a copy of your: D:\Program Files\GalCiv2\Twilight\GC2TwilightOfTheArnor.exe (Folder can be different)

3. Start the CFF Explorer, then open the GC2TwilightOfTheArnor.exe then go to "File Headers" then select at the right side under "Charactaristics" "Click here"... then click it! Then select and engage "App can handle >2gb addressesset" then press save and overwrite the original GC2TwilightOfTheArnor.exe later start the edited GC2TwilightOfTheArnor.exe

4. Find you boot.ini on your main hard drive like C:, its hiden so do this if you cant find it:To remove the hidden attribute from the boot.ini file, type the following command from a Command session: attrib c:\boot.ini -s -h -r

5. Edit the boot.ini like this:
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Micro soft Windows XP Professional" /noexecute=optin /fastdetect /3GBso just add "/3GB" to the line that looks like this line! Dont change anything else or your system may not reboot. Save it and reboot!

6. Start the edited GC2TwilightOfTheArnor.exe , Have Fun!

That will fix the crashes on a win XP system 32 bit with 4 GB of RAM.

Comments
Nathanius
Nathanius

Aww... my laptop's already got all the RAM in it I can cram in...

Waiting on an uber desktop next year! 4 to 8GB of RAM! Yeah! :P

Reply Good karma Bad karma+1 vote
Snapshot_9
Snapshot_9

Nathanius, if you have 2Gb it will use an extra 1 Gb of virtual memory.

iv got 8Gb of DDr3 ram and that makes no difference, its the program itself.

if you have 2Gb of ram just us the command prompt anyway. it should lessen the crashes on larger maps

Reply Good karma Bad karma+1 vote
Snapshot_9
Snapshot_9

I need to make an update here.

if your lucky enough like me to have a 64bit OS, use this instead.

/LARGEADDRESSAWARE:YES

This will allow the game to use up to 4Gb or memory, it will crash less and save faster.

THIS IS ONLY FOR 64bit OS, IT WILL NOT DO ANYTHING ON 32bit!!

Reply Good karma Bad karma+1 vote
CainStar
CainStar

Has there been any progress on the "out of memory" error. I'm playing biggest map you can pick and just when things are about to get intresting I can no longer save with out crashing.

I have 4G of memory and I have applied the command line(full path)
"D:\Galactic Civilizations 2 - Ultimate\Twilight\GC2TwilightOfTheArnor.exe" /LARGEADDRESSAWARE:YES

I'm using 64bit Windows 7.

Reply Good karma Bad karma+1 vote
Ferdain
Ferdain

Just some info since i love the st-vs-sw mod so much.

When I 1st bought GalCiv2 had this very problem. Went searching on the web and found the solution. Theres a program out there called CFF explorer. It allows you to change the max mem accessable in the header of the exe. IE all your 32 bit apps will be able to access expanded mem above 2gig.

I came accross this searching for a solution to this very problem.

:)

Reply Good karma Bad karma+1 vote
Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Guest
Guest

This comment is currently awaiting admin approval, join now to view.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

News
Tags
Fix
Browse
News
New
Post news
Share
Related Games