Hi.
I am working on a project require the quaternion to euler fix in the Irrlicht 1.8 build.
So I downloaded the nightly build form this website: http://irrlicht.convextech.ca/
However when running my project I face this error:
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.
I read the readme file and it said I have to rebuild the lib and the dll file again. So I rebuilt them again. However the problem still there?
I read here: http://irrlicht.sourceforge.net/forum/v ... hp?t=25751 found out that the lib and dll are different version. But I rebuilt it then it supposes to be the same version right?
Anyone can help me with this problem?
Irrlicht 1.8 DLL and lib file not compatible ?
Re: Irrlicht 1.8 DLL and lib file not compatible ?
I can't help you. I have tried to compile suda's 'deferredrendering' example and ent1ty's irrRender example and got the same problem in smgr->drawAll, when calling the light manager. But running suda's code without pressing 'L', everything is OK. Therefore, I believe it is not a library mismatch.
I wonder if an initialisation has changed from 1.7 to 1.8 to cause this. The code I mentioned runs perfectly fine in 1.7. Also, BTW, XEffects and the XML postprocessing framework run perfectly OK. That is why I wonder if something has not been initialised. I haven't taken this further because, well, it's not my code.
BTW the call stack looks OK, but I'm assuming something has written into it, like a buffer overflow. I didn't do a memory dump, though.
I wonder if an initialisation has changed from 1.7 to 1.8 to cause this. The code I mentioned runs perfectly fine in 1.7. Also, BTW, XEffects and the XML postprocessing framework run perfectly OK. That is why I wonder if something has not been initialised. I haven't taken this further because, well, it's not my code.
BTW the call stack looks OK, but I'm assuming something has written into it, like a buffer overflow. I didn't do a memory dump, though.
Re: Irrlicht 1.8 DLL and lib file not compatible ?
Very often it's because either you didn't update the include path and still include old headers or because you don't run the dll which you expect to be used (just delete it - if it still finds a dll it probably uses another...).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Irrlicht 1.8 DLL and lib file not compatible ?
Nah. As I said, suda's example runs fine if you don't use the light manager. I have only one lib and one dll and I built them both with the same compiler. Also, if I do it using 1.7.2 I have no problem. And, no, I don't mix my dlls and libs. This is a real problem. I actually rebuilt all four examples a couple of times. Also, two of the examples work with the light manager and two don't.
Re: Irrlicht 1.8 DLL and lib file not compatible ?
Sorry, I only know about the problem which I experience myself so far. One more I can think of is that compilers (especially very regularly VS 2010) don't recognize changed files and do not re-compile if they should. So regularly it's necessary to do a clean-all and rebuild everything (lib+project). But especially the problem above - every single time I've seen that so far it turned out to be a header-dll mismatch in the end.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Irrlicht 1.8 DLL and lib file not compatible ?
OK, there is a problem.
LightMgr= new irr::scene::ILightManagerCustom(Device);
Cannot instantiate abstract class. I forgot that I was trying to work around this. Sorry to have wasted your time.
LightMgr= new irr::scene::ILightManagerCustom(Device);
Cannot instantiate abstract class. I forgot that I was trying to work around this. Sorry to have wasted your time.