View Full Version : C++ error causes mid-game crash
Feb 27, 2008, 11:05 AM
I've been playing BTS for some time, but when I got to the Industrial Age my game started crashing consistently after about 30-45 minutes of gameplay. I haven't copied the exact error message yet, but I usually get a window that says there is a C++ error. This is oddly enough a Civ 4 window and not a Vista window. It tells me its going to close the program and the game music and sounds continue until I reluctantly click OK. The crash usually occurs when I pick a new item for my city to build on the "city advisor screen." But it doesn't happen every time, just after the above mentioned time frame. Of course I'm also having the general late game lag issue, but these crashes are making it unbearable.
Civ 4 Vanilla, Warlords Expansion, BTS Expansion
HP Pavillion dv 6500 Notebook, Windows Vista,
2 GB RAM, NVIDA GeForce Go 7150M, AMD Turion 64 X2 1.9 Ghz
Can Anyone help me? :(
Feb 27, 2008, 11:30 AM
welcome to CFC :band:
could you show a screenshot of the error?
Feb 27, 2008, 11:35 AM
I'll have you one by 2pm CST.
Feb 27, 2008, 11:40 AM
before doing that could you also please open you civilizationIV.ini and set all items with log in their name from 0 to 1 then after it crashes along with the c++ error please post the contents of your logs directory as a zip file.
You can attach files to a post by clicking on go advanced then on manage attachments below the reply box.
civilizationIV is located in:
...\documents and settings\<username>\my documents\my games\<game name>\
and the logs directory is
...\documents and settings\<username>\my documents\my games\<game name>\logs
where <game name> is either civilization 4 or warlords or beyond the sword depending on which of those (core game or an expansion) you are using :)
Feb 27, 2008, 12:05 PM
Ok, I changed the ini, I'm starting my game now. I'll reply when I get the error.
Feb 27, 2008, 01:13 PM
For some reason The Prt. Sc. function didn't work; (How conveniently annoying) But it said "Memory Allocation Error" in a Civ 4 box while I was in the city advisor screen (The one where you pick new objects to build and see the specialists.)
and I don't have a "logs" folder in there. Great, so I got nothing.:mad:
Could something work right......:sad:
Feb 27, 2008, 01:17 PM
mmmmm... this is weird. This line appeared at the bottom of my ini file.
; Break on memory allocation order #
BreakOnAlloc = -1
I'm pretty sure it wasn't there when I changed those log #'s
Feb 27, 2008, 01:21 PM
Just in case you asked.........this is in the ini to, I'm not sure if it affected my screenshot attempts.
; Allow Screenshots. May affect performance on some video cards
AllowScreenShots = 1
Feb 27, 2008, 01:29 PM
I think I found those logs. I had to go through the program files to get to them.
Hope this is it.:scan:
Feb 27, 2008, 01:34 PM
this is only part of the log - you got it most likely from program files/firaxis games/sid meier's civilization 4/beyond the sword/ in that directory there should be a link called _Civ4logs which is not the same as log which exists as a folder in there...
the break on alloc is indeed the last item while the four immediately before that are the ones that need to be set to 1.
Does the c++ error say anything apart from noting that it is a c++ error?
is there a windows error as well?
Feb 27, 2008, 02:02 PM
Oh. Maybe this is it then.
And, it doesn't say anything about windows. It wasn't even in a windows dialog box. It was in a civ 4 dialog box. (The box looks a lot like the one you see when a random event happens in the game, but it had the error message in it.)
Anyways, hopefully this one is the right log....
Feb 27, 2008, 02:08 PM
Ok I accidently forgot to put the attachement on, and now the forum won't let me add the attachment.
Feb 27, 2008, 02:12 PM
OK, I had to clear my attachments folder. But surely this is what you need.... I hope........
Feb 27, 2008, 02:15 PM
so you are trying to load a mod
Rise of Mankind
does it also crash without this mod being loaded?
Feb 27, 2008, 02:26 PM
I've never got this far into the game without a mod. I never could settle for the original build; to simple ;) .
Do you really think its a mod problem....?
If you do, would starting a normal game in the industrail age with all of the advanced start upgrades serve as a good experiment to see if its mod related?
...And I've never had trouble loading this mod, I haven't add any trouble with it all the way until the Industrial age.
Feb 27, 2008, 02:40 PM
the thing is: I have not seen a c++ error in this game without either
a corrupted install - which would cause problems MUCH earlier ;)
You should probably post your problem in the thread for this mod since those that maintain it will likely be able to help better. I see that there was a new release yesterday so that might also be worth a try :)
Feb 27, 2008, 02:43 PM
Would updating the patch to the mod, make it impossible to use previous game saves of that mod?
Feb 27, 2008, 02:50 PM
that is a question to ask here (http://forums.civfanatics.com/showthread.php?t=238801) - since that depends on what kind of changes they made :)
Feb 29, 2008, 12:41 PM
WOW - another with almost the same problem as me :confused:
I posted this:
I have got the exact same error-message as you in game about "Memory Allocation Error"
Then when back in Vista a dialog box appears with a C++ error - attached as picture.
In my case this error has definately been given to me using the Giant Earth Map - mod.
However - the game has also crashed on scenarios not using mods, and in normal games.
ori: Do you know what the line:
; Break on memory allocation order #
BreakOnAlloc = -1
means - would it change something to change the setting, and if yes - to what? :confused:
Feb 29, 2008, 12:49 PM
this is a debug setting - it probably is used to identify any memory leaks if they happen. I never tried setting it to 0 but I would guess it will make no difference at all apart from some output in a debug file....
Mar 01, 2008, 06:35 PM
Oh, so I'm not alone.........