Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Solving some crashes
devqq Offline
Junior Member

Posts: 4
Threads: 1
Joined: May 2010
Reputation: 0
#1
Solving some crashes

void cSoundEntity::AddGlobalCallback(iSoundEntityGlobalCallback *apCallback)
{
mlstGobalCallbacks.push_back(apCallback);
}

This crashes the program currently. Access violation reading location error.
Is there a workaround?
05-16-2010, 01:52 AM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#2
RE: Solving some crashes

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.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
05-16-2010, 03:48 AM
Website Find
devqq Offline
Junior Member

Posts: 4
Threads: 1
Joined: May 2010
Reputation: 0
#3
RE: Solving some crashes

[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
05-16-2010, 04:51 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#4
RE: Solving some crashes

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).

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
05-16-2010, 05:39 PM
Website Find




Users browsing this thread: 1 Guest(s)