Page 1 of 1

Problem Plz Help!

Posted: Thu Oct 07, 2004 6:09 pm
by Shai-Tan
I have this error when I'm trying to run first tutorial. I never had any problems with irrlicht before.

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.

What is cousing it?

Posted: Thu Oct 07, 2004 11:16 pm
by saigumi
This usually means you are using headers from one version and the library from another.

Posted: Fri Oct 08, 2004 2:21 am
by Shai-Tan
How can it be? I've downloaded the zip file of Irrlicht 0.7. I even got the copy of the old zip before the latest updates. I still have the problem.

I can't be using the headers from a different version. Lately, I re-installed my windows and it was a complete format.( Yes, I downloaded all the patches and drivers too)

Before that I had a problem that was something like.... problem with the device creation in Irrlicht.dll, but it went away after few changes in Path.

Posted: Fri Oct 08, 2004 2:27 am
by Shai-Tan
Does Visual Studio copy any headers to some catch or Temp directory? Could it be that it tries to access them from a different folder? I was testing 0.6 version, and it worked with no problems, but I deleted it and removed all pathes.

Posted: Fri Oct 08, 2004 12:44 pm
by saigumi
The only cache that VS would keep is the compiled objecte waiting to be linked. If you run a rebuild or clean and build, those should be removed.

The most common ways that this happens is when an old DLL is tossed somewhere in the path, like c:\windows\system32 or is copied into the same directory as the binaries for your project c:\myproject\Debug\

Or conversly, if you still have the 0.6 location in you Projects Additional Directories area for the library and includes.