[Mono-list] Marshalling union crashes

Robert Jordan robertj at gmx.net
Fri Jun 18 10:55:34 EDT 2010


On 18.06.2010 16:14, Jef Driesen wrote:
> On 18/06/10 15:27, Robert Jordan wrote:
>> On 18.06.2010 13:27, Jef Driesen wrote:
>>> This seems to work fine with MS .NET, but crashes under mono with the error:
>>
>> Which Mono version and architecture?
>
> $ mono --version
> Mono JIT compiler version 2.4.4 (Debian 2.4.4~svn151842-1ubuntu4)
> Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
> 	TLS:           __thread
> 	GC:            Included Boehm (with typed GC)
> 	SIGSEGV:       altstack
> 	Notifications: epoll
> 	Architecture:  amd64
> 	Disabled:      none

So it's a 64 bit Mono.

On Linux/64, an "int" is 8 bytes wide, whereas your managed structs
are assuming 4 bytes (a managed int is 4 bytes wide, regardless
of the architecture).


Robert



More information about the Mono-list mailing list