PDA

View Full Version : Run-Time Check # 0 - The value of ESP ....... HELP



vantunes
05-13-2014, 07:34 PM
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.

jeehell
05-15-2014, 04:05 AM
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

vantunes
05-15-2014, 07:09 AM
Hello,
thank you for your quick response, that link is quit informative, any way i will send you more information by mail.
Thank you.

smendlik
01-15-2023, 03:15 PM
https://datebest.net - visit website and win smartphone!