[Mono-list] Structure marshalling?
Dietmar Maurer
dietmar@ximian.com
21 Aug 2002 18:37:30 +0200
On Wed, 2002-08-21 at 15:44, J. Perkins wrote:
> What is the status of structure marshalling to unmanaged code?
> I'm trying to hook up a legacy library, and it uses a callback
> which passes a pointer to a structure.
>
> typedef void (*EventHandler)(Event*);
>
> I got it working fine under .NET, but under Mono the struct
> comes back with garbage. I could post some sample code, but
> I wanted to make sure this wasn't a known issue first. I
> didn't see anything in the bug db about it.
structure marshalling should work - please post a bug report (the sample
code would be very helpful).
- Dietmar