F
Fabien Penso
Hi.
I am trying to make this work but I got a weird behavior. I got a very
basic system, I call a unmanaged "dllimported" function and give it a
structure of callback functions.
Sometimes, the unmanaged part calls one of the callback functions. But
the first one has its pointer changed from its address to "0x00000001".
I can't figure out why.
My thought is it gets garbage collected, but I don't see why (I tried
different ways, I currently use the structure instance as static). Also
why does the garbage collector would set this to 1 instead of 0 ?
Any link or help will be appreciated
The code : http://www.rafb.net/paste/results/odKsGI15.html
I am trying to make this work but I got a weird behavior. I got a very
basic system, I call a unmanaged "dllimported" function and give it a
structure of callback functions.
Sometimes, the unmanaged part calls one of the callback functions. But
the first one has its pointer changed from its address to "0x00000001".
I can't figure out why.
My thought is it gets garbage collected, but I don't see why (I tried
different ways, I currently use the structure instance as static). Also
why does the garbage collector would set this to 1 instead of 0 ?
Any link or help will be appreciated

The code : http://www.rafb.net/paste/results/odKsGI15.html