[Migrated content. Thread originally posted on 28 January 2011]
Hi, i call a dll function using the format "myfunction@WINAPI". The function correctly does its work, but crashes when returns, with an error message of memory access violation. With previous runtimes the function worked correctly.Other functions of the same dll works correctly, all called with the WINAPI calling convention. For debug purpose i tried calling other working functions with the wrong calling convention, say "__cdecl", obtaining the same anomalous behaviour: the function is called, it performs its work and crashes on return.
Is it possible that "myfunction" is not called with the correct calling convention even if specified with @WINAPI?(setting the environment variable fails as well)



