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