[Mono-list] Mono can't use LayoutKind.Explicit ?

Sirajuddin Maizir siroj100@yahoo.com
Sat, 24 Jul 2004 02:46:36 -0700 (PDT)


Hi, I'm trying to implement a C# wrapper for SDL,
cause I can't find any that work with Mono.

First, it runs nicely on both .Net Framework and Mono,
but then I realized that there is a bug in my code,
which prevent me to use the SDL events subsystem.

The bugs is because I declare SDL_events as an
ordinary struct (with attribut
StructLayout[LayoutKind.Sequential]), where it should
be actually a union of struct (with attribut
StructLayout[LayoutKind.Explicit]). And then it
happens. My program no longer work on Mono (it crash
after I tried to use the SDL_events struct), both on
Windows and Linux.

Has this problem discovered by anyone? If it has,
could someone help me to make sure my code work on
both Mono and .Net Framework ?

(P.S. : sorry for not sending my code, I will send it
in zip if you want, just mail me)

=====
Thinking is good, but thinking a good thing is more important
Keep thinking, and think deeply....
But don't waste your time thinking what to think about ....

-- Sirajuddin Maizir --


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail