Results 1 to 3 of 3
  1. #1
    New Member
    Join Date
    May 2014
    Location
    Portugal
    Posts
    2
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Run-Time Check # 0 - The value of ESP ....... HELP

    hello I'm working on the dll to interface with some hardware. At this time the DLL is loaded by "hardwareconnect" and apparently everything works as expected but the callback functions, for instance, when the function to post a log is called, the message appears correctly in “hardwareconnect “ window, however the following error appears:
    "Run-Time Check # 0 - The value of ESP was not saved across the call function This is usually the result of calling the function declared with one calling convention with a function pointer declared with a different calling convention"


    Here is the offending function:
    tmp = SendLog(“ModuleName”, “Some Log”);


    I did some code to test the dll and everything works as expected so i am lost where, any help is very welcome.


    thank you.

  2. #2
    2000+ Poster - Never Leaves the Sim
    Join Date
    Mar 2008
    Location
    France,Nice
    Posts
    2,652
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Run-Time Check # 0 - The value of ESP ....... HELP

    Hello,

    It's hard to debug code without really seeing it...
    I found that: http://mfctips.com/2013/03/29/run-time-check-failure-0/

    One thing (as I do not know what language you use...), are you sure that "modulename" and "some log" are actual PChar?

    I prefer to finish this kind of thread off the forum. You can contact met by mail (you must have it since somehow you have the SDK?)

    Regards,
    JL

  3. #3
    New Member
    Join Date
    May 2014
    Location
    Portugal
    Posts
    2
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Run-Time Check # 0 - The value of ESP ....... HELP

    Hello,
    thank you for your quick response, that link is quit informative, any way i will send you more information by mail.
    Thank you.


  4. #4
    25+ Posting Member
    Join Date
    Nov 2008
    Location
    GB
    Posts
    25
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Prettys Womans from your city for night - Actual Women


  5. #5
    New Member
    Join Date
    Mar 2017
    Location
    Usa
    Posts
    1
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Beautiful Womans in your town for night - Authentic Damsels