|
-
May 20th, 1999, 09:31 AM
#1
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.
-
May 21st, 1999, 01:40 AM
#2
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....
-
May 21st, 1999, 01:59 AM
#3
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|