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


I can compile it, but it crashes...
MulleDK19 Offline
Senior Member

Posts: 545
Threads: 21
Joined: Jun 2009
Reputation: 10
#12
RE: I can compile it, but it crashes...

(05-16-2010, 09:36 PM)Urkle Wrote: Hmmm. I'll have to look more at is one. Or just add a breakpoint and walk through it to see what is going on..

Ya, I tried that... I have no idea what's going on.


Edit: I fixed it by adding a break; when it has removed the body it was looking for. Perhaps the exception is due to the list being changed, while iterating (due to the erase()). At least it works now.

Anyhow, shouldn't there really be a break;? From what I can figure, DestroyBody() removes one body, right? So after finding it, there's no need to iterate the rest?


After getting off the boat and down through the hatch, I get another violation xD

C:\Programmer\Microsoft Visual Studio 9.0\VC\crt\src\dbghook.c:65

Call-stack:
Quote:> msvcr90.dll!_crt_debugger_hook(int _Reserved=5) Line 65 C
msvcr90.dll!_invalid_parameter(const wchar_t * pszExpression=0x00000000, const wchar_t * pszFunction=0x00000000, const wchar_t * pszFile=0x00000000, unsigned int nLine=0, unsigned int pReserved=0) Line 112 + 0x7 bytes C++
msvcr90.dll!_invalid_parameter_noinfo() Line 125 + 0xc bytes C++
Penumbra.exe!hpl::cMeshLoaderCollada::AddSectorChildren(hpl::cColladaNode * apNode=0x095be570, std::basic_string<char,std::char_traits<char>,std::allocator<char> > asSector="ENTRANCE", hpl::cWorld3D * apWorld=0x05b6ed68, std::vector<hpl::cColladaGeometry,std::allocator<hpl::cColladaGeometry> > & avColladaGeometries=[122]({msId="_start_link0Shape1-lib" msName="_start_link0Shape1" mvVertexVec=[24]({pos={...} tex={...} tan={...} ...},{pos={...} tex={...} tan={...} ...},{pos={...} tex={...} tan={...} ...},{pos={...} tex={...} tan={...} ...},{pos={...} tex={...} tan={...} ...},{pos={...} tex={...} tan={...} ...},{pos={...} tex={...} tan={...} ...},{pos={...} tex={...} tan={...} ...},{pos={...} tex={...} tan= .. ,...,...), std::vector<hpl::cColladaLight,std::allocator<hpl::cColladaLight> > & avColladaLights=[3]({msId="pointLightShape3-lib" msName="pointLightShape3" msType="point" ...},{msId="pointLightShape2-lib" msName="pointLightShape2" msType="point" ...},{msId="entrance_spotlight_spShape1-lib" msName="entrance_spotlight_spShape1" msType="spot" ...}), std::vector<hpl::cColladaMaterial,std::allocator<hpl::cColladaMaterial> > & avColladaMaterials=[31]({msId="text_start" msName="text_start" msTexture="#text_start-fx" ...},{msId="lambert2" msName="lambert2" msTexture="#lambert2-fx" ...},{msId="lambert1" msName="lambert1" msTexture="#lambert1-fx" ...},{msId="lambert4" msName="lambert4" msTexture="#lambert4-fx" ...},{msId="portal_text" msName="portal_text" msTexture="#portal_text-fx" ...},{msId="lambert3" msName="lambert3" msTexture="#lambert ,...), std::vector<hpl::cColladaTexture,std::allocator<hpl::cColladaTexture> > & avColladaTextures=[31]({msId="text_start-fx" msName="" msImage="file69-image" },{msId="lambert2-fx" msName="" msImage="file1-image" },{msId="lambert1-fx" msName="" msImage="mine_metaldoor_file1-image" },{msId="lambert4-fx" msName="" msImage="file3-image" },{msId="portal_text-fx" msName="" msImage="file38-image" },{msId="lambert3-fx" msName="" msImage="file2-image" },{msId="camera_text-fx" msName="" msImage="" },...,...), std::vector<hpl::cColladaImage,std::allocator<hpl::cColladaImage> > & avColladaImages=[29]({msId="file69-image" msName="file69" msSource="StartLocator.tga" },{msId="file1-image" msName="file1" msSource="mine_rock.jpg" },{msId="mine_metaldoor_file1-image" msName="mine_metaldoor_file1" msSource="door_metaldoor.jpg" },{msId="file3-image" msName="file3" msSource="mine_ground01.jpg" },{msId="file38-image" msName="file38" msSource="PortalMarker.jpg" },{msId="file2-image" msName="file2" m,...)) Line 2362 + 0xf bytes C++
Penumbra.exe!hpl::cMeshLoaderCollada::LoadWorld(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asFile="maps/level01_02_mine_entrance.dae", hpl::cScene * apScene=0x0141b6e0, unsigned int aFlags=0) Line 172 + 0x5d bytes C++
Penumbra.exe!hpl::cMeshLoaderHandler::LoadWorld(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asFile="maps/level01_02_mine_entrance.dae", unsigned int aFlags=0) Line 120 + 0x17 bytes C++
Penumbra.exe!hpl::cScene::LoadWorld3D(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asFile="level01_02_mine_entrance.dae", bool abLoadScript=true, unsigned int aFlags=0) Line 404 + 0x1b bytes C++
Penumbra.exe!cMapHandler::Load(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asFile="level01_02_mine_entrance.dae", const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & asStartPos="link01") Line 443 + 0x16 bytes C++
Penumbra.exe!cMapHandler::Update(float afTimeStep=0.016666666) Line 1424 C++
Penumbra.exe!hpl::cUpdater::Update(float afTimeStep=0.016666666) Line 213 + 0x27 bytes C++
Penumbra.exe!hpl::cGame::Run() Line 380 C++

[Image: 16455.png]
05-17-2010, 09:48 AM
Find


Messages In This Thread
RE: I can compile it, but it crashes... - by MulleDK19 - 05-17-2010, 09:48 AM



Users browsing this thread: 1 Guest(s)