Zitat von
_jaromir_:
I believe the loadDll part is problem maybe, everything else seems ok from my view.
Currently I do not have the time to verify the whole code, sorry.
You are right about loadDll. Make sure / verify that the Delphi compiler does not generate stack frame code for the function (set a breakpoint on the "
asm" statement of the function and take look at the CPU window.
For sanity reasons you might want to use a hand-crafted packed record with the target code.