this will get you thinkin!
For no apparent reason!, the application on which I am working has started to display the following message during application startup, i.e. compilation and linkage has completed successfully.. "Debug Error! 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 that ESP is refering to the stack pointer but I haven't a clue as to how the problem can be rectified!! Any suggestions would be very much appreciated.
Thanks.
Re: this will get you thinkin!
Hi,
I has got me thinking that I have seen this problem somewhere before.
The problem was declaring a function as a particular type for example _stdcall, but calling it using using the "C" convention call.
(or possibly the other way around).
hence the stack does not get cleaned up properly.
Some code might help....
Re: this will get you thinkin!
Try a full recompile of your project. I have found that sometimes too many incremental compiles and links can screw your whole project up for no apparent reason. My favourite error is an assertion when I try to declare a CDWordArray on the stack.