Quote:Original post by SiCrane
You shouldn't need to make __stdcall part of the boost::function<> type; it should be able to adapt function pointers regardless of the calling convention.
When I don't specify a calling convention, and I compile a Debug build, I get the following runtime error:
Quote: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 with one calling convention with a function pointer declared with a different calling convention.
I have the option of Aborting, Retrying, and Ignoring.
When I click Retry, it works..
If I compile a Release build instead of a Debug build, it works just fine.
I wonder if it is still having a problem, but is silent about it because its not a Debug build...