[Mono-list] interop help (explanation)

Lloyd Dupont lloyd@galador.net
Wed, 07 Nov 2001 23:57:08 +0100


i have interop code to which i pass delegate (callback function) and it 
return me a structure pointer as an IntPtr in C# (holding the value of 
my callback)

later i use my structure(C# IntPtr) to call native which call the 
callback (delegate) but it sometimes appear that tyhe runtime should 
have moved some info about my delegate and callback call some times fail...

what could i do to besure my callback won't move.
they are static value of some class but this seems to be not sufficient, 
anyone has an advice ? clues ....

any help much appreciate,
thanks !