Re: [Mono-dev] Embedded Mono - Structures and internal C methods

2005-10-05 Thread Paolo Molaro
On 10/05/05 Tony McGrath wrote: > I found out what the problem was. I had a fixed char buffer in the > structure. > This was not being marshalled correctly, which was causing the copy to > fail. Once this was fixed the rest started to work correctly. Internal calls don't do any marshaling, from t

Re: [Mono-dev] Embedded Mono - Structures and internal C methods

2005-10-04 Thread Tony McGrath
Paolo Molaro wrote: On 10/04/05 Tony McGrath wrote: I have been trying, with little success, to work out how to pass a struct from 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

Re: [Mono-dev] Embedded Mono - Structures and internal C methods

2005-10-04 Thread Paolo Molaro
On 10/04/05 Tony McGrath wrote: > I have been trying, with little success, to work out how to pass a > struct from > 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 refl

[Mono-dev] Embedded Mono - Structures and internal C methods

2005-10-04 Thread Tony McGrath
I have been trying, with little success, to work out how to pass a struct from 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 a