Solving some crashes - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Open Source Collaboration (https://www.frictionalgames.com/forum/forum-27.html) +--- Forum: Overture (https://www.frictionalgames.com/forum/forum-29.html) +--- Thread: Solving some crashes (/thread-3372.html) |
Solving some crashes - devqq - 05-16-2010 void cSoundEntity::AddGlobalCallback(iSoundEntityGlobalCallback *apCallback) { mlstGobalCallbacks.push_back(apCallback); } This crashes the program currently. Access violation reading location error. Is there a workaround? RE: Solving some crashes - Urkle - 05-16-2010 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. RE: Solving some crashes - devqq - 05-16-2010 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 RE: Solving some crashes - Urkle - 05-16-2010 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). |