[Mono-dev] Embedded Mono - Structures and internal C methods
toeknee at chipmonks.oz.au
Tue Oct 4 06:04:35 EDT 2005
I have been trying, with little success, to work out how to pass a
C# into a C routine that has been registered with mono_add_internal_call().
Specifically, the struct has to be modified within the C routine and those
changes need to be reflected back into the managed C# struct.
I assumed, probably incorrectly, that the standard P/Invoke mechanisms
would be appropriate, and with the C# code using a ref modifier it appears
as if the structure is being sent into the C routine properly, but the
struct is not being copied back into the C# side at all.
Is there any particular magic that is required with internal calls with
application to get the copy in/copy out mechanism to work correctly?
Yours in desperation.
Chip Monks Computing.
More information about the Mono-devel-list