Hi I am getting the runtime 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 know there is a question already present in stackoverflow on the same topic.
But my doubt is that what is meant by "ESP" here.
In my code: I am calling a function X() like this:
obj -> X();
But I observe in call stack that some other function Y() which is NOT EVEN a part of the current solution is getting called!!!! (I did F11 on the statement "obj -> X(); " and control is going inside Y(), and this Y() is not even a part of my current SOLUTION !!!!!!!!
This is so strange that when I am calling X() some other function Y() (NOT even a part of the current solution) is getting called.
Can anyone kindly help me in this....
FYI I am using VS2008.
Thanks in advance.