Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Debug Error - The value of ESP was not properly saved across a function call..

[COLOR=Black]I am working on a project that decrypts some text encodes it to base 64 and does the reverse to obtain back the original text. I have used some ready implemented algorithms I found.. I have edited these accordingly to meet my needs and when testing encrypting /decrypting and encoding/decoding alone they all work with no problems.. but when I put all together it complies but when I run it it gives me the following debug error

"Debug Error !
Program : TradNSP.EXE
Module :
File : i386\chkesp.c
Line : 42
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 have attached the files I am using.. I just cant figure out why it is happening.

Thanks
[874 byte] By [gilubilu] at [2007-11-11 8:16:58]
# 1 Re: Debug Error - The value of ESP was not properly saved across a function call..
Thats an assembly language error saying:
Your stack is messed up (too much global/static data) or your calling conventions are hosed up (fortran vs C++ or something).

Look for stuff like stdcall vs cdecl etc in front of function names.
jonnin at 2007-11-11 21:01:27 >