CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Posts
    2

    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.


  2. #2
    Join Date
    May 1999
    Posts
    25

    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....




  3. #3
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    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.

    --
    Jason Teagle
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured