Hey guys, im trying to get the game engine to work on the version of visual studio expresss that i have and i have followed all of the instructions in tutorial 1 and managed to get that program to compile but for some reason it wont run and when i debug it it gives me the error on this line:
IVideoDriver* driver = device->getVideoDriver();
that says this:
Run-Time Check Failure #0 - The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention.
so i tried to change this line:
IrrlichtDevice *device = createDevice( video::EDT_SOFTWARE, dimension2d<u32>(640, 480), 16, false, false, false, 0);
to:
IrrlichtDevice *device = createDevice( video::EDT_DIRECT3D8, dimension2d<u32>(640, 480), 16, false, false, false, 0);
but it gave me an error saying that a bunch of .dll files like "C:\Windows\SysWOW64\clbcatq.dll" could not find or open the PDB file so i dont know what to do, what i might have done wrong, or how to fix it. Please help me.
Set up help! please
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
The ESP error usually means that you have an old or wrong Irrlicht.dll in your system path. Due to changes in the headers/structures between different versions you get these crashes. Make sure you have only one Irrlicht.dll, best is to place it directly into the executable's directory as done for the examples in the SDK
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm
Well i only have one version of irrlicht and that's 1.7.1 but i dont know how to fix this problem... i have tried to compile the programs in the exaples folder but they are a 2003 version and arent compatible with 2010 visual studio and it doesnt work correctly but that code is identical to mine and i am positive i have set everything up cprrectly but im not sure what could be wrong
Hey guys, well thanks for your help, it gave me ideas about where to look for the answer to fixing my problem that i have now resolved... what happened was i found 2 different "Irrlicht.dll" files in the game engine. the one i had been using was the one in the "irrlicht-1.7.1\bin\Win32-gcc" directoy and that file is about 6.5 mb and the one i needed to use was the one in the "irrlicht-1.7.1\bin\Win32-VisualStudio" directoy thats a file size of about 2.2 mb... i have no idea why there are 2 of these .dll files but thanks to lonesome ducky for his signature about his current projects that i looked at and found the smaller .dll file
-
- Competition winner
- Posts: 1123
- Joined: Sun Jun 10, 2007 11:14 pm