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

    ESP value modified.

    Hello.
    I hooked an address of a function withing my own process, but now when i run it i get this error:
    Code:
    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 was testing this on Vista and wondering how can i bypass this?Note that thsi is only valid in debug builds.
    Thx
    Last edited by Quell; February 8th, 2007 at 10:06 PM.

  2. #2
    Join Date
    Aug 2005
    Posts
    478

    Re: ESP value modified.

    Why would you want to bypass something that is obviously erraneous and bad to have in release code?
    Windows XP, Visual Studio 2008, SVN

  3. #3
    Join Date
    Aug 2003
    Posts
    938

    Re: ESP value modified.

    Well, i need to bypass it in the debug build so it no longer is erranouse. I modified the code runtime to fix a few things, and the "error" is completely of my making. I just wanna know what i need to do to make it all nice.

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