Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
Solving some crashes
Author Message
devqq Offline
Junior Member

Posts: 4
Joined: May 2010
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Urkle Offline
FG - Associate

Posts: 1,153
Joined: Jul 2006
Reputation: 19
Post: #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
Mac Pro Dual 2Ghz, 14GB RAM, 10.6 (still), nVidia 8800 512MB.
Linux, 8-core AMD, 8GB RAM, Fedora 17, nVidia 450 1GB
05-16-2010 03:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
devqq Offline
Junior Member

Posts: 4
Joined: May 2010
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Urkle Offline
FG - Associate

Posts: 1,153
Joined: Jul 2006
Reputation: 19
Post: #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
Mac Pro Dual 2Ghz, 14GB RAM, 10.6 (still), nVidia 8800 512MB.
Linux, 8-core AMD, 8GB RAM, Fedora 17, nVidia 450 1GB
05-16-2010 05:39 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)