Set up help! please

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
intrivix
Posts: 4
Joined: Fri Jul 09, 2010 4:56 am
Contact:

Set up help! please

Post by intrivix »

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.
weeix
Posts: 23
Joined: Fri Jul 09, 2010 5:07 am

Post by weeix »

Have you tried out the example projects?

They are in the 'irrlicht\examples' folder.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

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
intrivix
Posts: 4
Joined: Fri Jul 09, 2010 4:56 am
Contact:

Post by intrivix »

Yea i have tried running the example programs and they work, but for some reason the one that i compiled didnt work.
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Most likely you either didn't update the header or library files, .h and .lib (or .a). Whenever you have a new version of irrlicht, you must be sure to update the headers and library files wherever your compiler looks for them.
intrivix
Posts: 4
Joined: Fri Jul 09, 2010 4:56 am
Contact:

Post by intrivix »

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
intrivix
Posts: 4
Joined: Fri Jul 09, 2010 4:56 am
Contact:

Post by intrivix »

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
Lonesome Ducky
Competition winner
Posts: 1123
Joined: Sun Jun 10, 2007 11:14 pm

Post by Lonesome Ducky »

Oh yes, if you aren't using a gcc compiler, don't use that dll. The two dlls are compiled differently, by different compilers, and are not interchangeable I believe. Good that you solved it :)
carroll6
Posts: 8
Joined: Tue Jun 14, 2011 4:30 am

Oh YEAH!

Post by carroll6 »

Intrivix... man ya ROCK! I been up all weekend.. hacking at it.. You get a gold medal, about as big as a basketball.
Post Reply