Any Idea about this error? Value of ESP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nabil035
    New Member
    • Mar 2008
    • 34

    #1

    Any Idea about this error? Value of ESP

    I am writing COM servers and each time I have this error I don't know the cause:

    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 want to have a detailed explanation of this error and the problems that cause it

    please help!!
  • nabil035
    New Member
    • Mar 2008
    • 34

    #2
    Sorry,

    but the problem was so simple I've just use two different call conventions __stdcall

    and __cdlec

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      Yep. You have to use WINAPI. That is, __stdcall.

      Comment

      Working...