Frictional Games Forum (read-only)

Full Version: Solving some crashes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
void cSoundEntity::AddGlobalCallback(iSoundEntityGlobalCallback *apCallback)
{
mlstGobalCallbacks.push_back(apCallback);
}

This crashes the program currently. Access violation reading location error.
Is there a workaround?
Can you run it through the debugger and see what the value of mlstGobalCallbacks and apCallback is. Also what optimization level are you compiling at?? Also try searching what that error message means. Sounds like some odd visual studio thing. As the code runs under gcc 4.2 which is extremely "picky" when it comes to C++ compliance. I know on the windows side, Thomas was using visual studio 2003.
[Image: 39512510.png]

Same result release and debug, Release is fully optimized.
I dont know if this is to do with the fact I compiled under vs2010.

I got the cwd set to the redist folder. however:

ERROR: Couldn't add func ' Print ()' //these are still here
ERROR: Couldn't add func ' FloatToString ()'
ERROR: Couldn't add func ' IntToString ()'
ERROR: Couldn't add func ' RandFloat ()'
many more similar...

WARNING: No resources element found in 'config/English.lang' //edit: fixed this now, applied penumbra 1.1 patch instead of overture patch
WARNING: Could not find language file category 'LoadTexts' //and this

Any suggestions on how to fix these?

I still have the annoying crash of the sound entity global callback push_back
don't compile at full optimization.. The optimizer has been known to create issues when set to full (even with GCC's optimizer).

Hmm.. it's acting like it's not finding any resources. You sure you install of the game isn't corrupted somehow?

And the Couldn't add func looks very odd.. That is referencing the Angelscript section.. you might want to start by re-downloading angelscript and compiling it "fresh" instead of using the provided lib (which was created in VS 2003).