Click to See Complete Forum and Search --> : this will get you thinkin!
Chris Finn
May 20th, 1999, 09:31 AM
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.
Andy St.Clair
May 21st, 1999, 01:40 AM
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....
Jason Teagle
May 21st, 1999, 01:59 AM
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.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.