Now the problem: when I start my program with the new version of the dll (compiled in debug mode), the program breaks at the following line in CSceneManager.cpp. This happens somewhere within the drawAll() function:
Code: Select all
//! Returns the current color of shadows.
video::SColor CSceneManager::getShadowColor() const
{
return ShadowColor; // <-- has a value but still gives error?
}
I have no idea what this means. A possible solution might be to explicitly set the shadow color before rendering anything, so that's what I did. Now I get an even bigger error:Unhandled exception at 0x100fafca (Irrlicht_debug.dll) in Virtualis.exe: 0xC0000005: Access violation writing location 0x7d864120.
The compilation settings for both Irrlicht version 1.3 as 1.3.1 are exactly the same. For some reason only 1.3 works, the other one just crashes on runtime. I use MSVC 2005 on Windows 2000.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.
Does anyone here have the same problem or might know of a solution?
Thanks in advance.