Hi, all:
The P/Invoke can pass a delegate object to native code as a function pointer,
for example: the native code as following:
extern "C" PINVOKELIB_API void TestCallBack( FPTR pf, int value )
{
bool res = (*pf)(value);
if( res )
printf( "Callback returned true.\n" );
else
printf( "Callback returned false.\n" );
}
Where the pf point to in Mini JIT?
when I parsed the the mono JIT, I don't know how the function
mono_delegate_to_ftnptr() in marshal.c to pass pointer to native.
Of course, maybe I get a wrong place for the delegate object to native. Pls help
me show the clue how Mini implement callback between Mono and native code.
Thanks in advance.
He HongFu
_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list