[Mono-list] Mono can't use LayoutKind.Explicit ?
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 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] NET_1_1 Co.
On Fri, Jul 23, 2004 at 03:40:12PM +0200, Jochen Wezel wrote: While reviewing code, I've seen in System.Environment: #if NET_1_1 static #endif I would write #if not NET_1_0 since I expect that in 2.x this static won't change. But if I reason correctly, this static item would get unstatic with this current grammar in DotNet 2.x. In mcs/class/README it says: * Supporting .NET 1.2, .NET 1.1 and .NET 1.0 builds The defines NET_1_1 and NET_2_0 are used to include features. When NET_2_0 is defined, it also implies that the NET_1_1 is defined. To have code which is only available in an old version, use ONLY_1_0, ONLY_1_1 The code you quoted is therefore correct. -- Malcolm Parsons ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
RE: [Mono-list] Mono can't use LayoutKind.Explicit ?
Hello! It's difficult to say anything without looking at code - please post it or send it. I have plenty of problems with P/Invoke differences between .NET and Mono (this is the most vague part of ECMA standard as you may know) but never experienced problems with LayoutKind.Explicit StructLayout attribute and I do a lot of cross platform P/Invoke with complex structs/classes. Cheers Jacek -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sirajuddin Maizir Sent: Saturday, July 24, 2004 11:47 AM To: [EMAIL PROTECTED] Subject: [Mono-list] Mono can't use LayoutKind.Explicit ? 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 ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] mod_mono on Mac + searching the list
Does XSP also not work on MacOS X? ... I'm getting this when I hit a page served by XSP: Adding applications '/mono:/mono'... Registering application: Host: any Port: any Virtual path: /mono/ Physical path: /mono Listening on port: 8080 Listening on address: 127.0.0.1 Root directory: /Users/abe/Sites Hit Return to stop the server. ** ERROR **: file exceptions-ppc.c: line 930 (ves_icall_get_trace): assertion failed: (ji != NULL) aborting... ./startxsp: line 1: 3757 Abort trap mono /usr/local/bin/xsp.exe --root /Users/abe/Sites --applications /mono:/mono --address 127.0.0.1 * Things are ok up to this point, Then I try to access a page and ... ** ERROR **: file exceptions-ppc.c: line 930 (ves_icall_get_trace): assertion failed: (ji != NULL) aborting... ./startxsp: line 1: 3285 Abort trap mono /usr/local/bin/xsp.exe --root /Users/abe/Sites/mono --applications /mono:/mono --address 127.0.0.1 Thanks. -Abe On Jul 22, 2004, at 6:47 PM, Erik Dasque wrote: mod_mono doesn't work on MacOS X right now (http://bugzilla.ximian.com/show_bug.cgi?id=60766 and others), I believe. On Jul 22, 2004, at 1:08 PM, Abe Gillespie wrote: Hey guys, Well, I finally broke down and bought Panther and Mono finally compiles and installs! However, I can't get mod_mono to work. I keep getting Service Temporarily Unavailable I think this has been addressed before. How does one go about searching the list archives? I think someone described a way you can do it in Google. Thanks for the help. -Abe ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] XSP on Mac is broken, was mod_mono on Mac + searching the list
Ok, I found the issue in an older post: http://lists.ximian.com/archives/public/mono-list/2004-July/022060.html OT - BTW, is this considered top-posting. If so, why is it bad etiquette? If not, what is? Sorry, just trying to be a good netizen. Thanks for all the help as always. Eagerly looking forward to ASP.NET on my Mac. -Abe On Jul 24, 2004, at 3:53 PM, Abe Gillespie wrote: Does XSP also not work on MacOS X? ... I'm getting this when I hit a page served by XSP: Adding applications '/mono:/mono'... Registering application: Host: any Port: any Virtual path: /mono/ Physical path: /mono Listening on port: 8080 Listening on address: 127.0.0.1 Root directory: /Users/abe/Sites Hit Return to stop the server. ** ERROR **: file exceptions-ppc.c: line 930 (ves_icall_get_trace): assertion failed: (ji != NULL) aborting... ./startxsp: line 1: 3757 Abort trap mono /usr/local/bin/xsp.exe --root /Users/abe/Sites --applications /mono:/mono --address 127.0.0.1 * Things are ok up to this point, Then I try to access a page and ... ** ERROR **: file exceptions-ppc.c: line 930 (ves_icall_get_trace): assertion failed: (ji != NULL) aborting... ./startxsp: line 1: 3285 Abort trap mono /usr/local/bin/xsp.exe --root /Users/abe/Sites/mono --applications /mono:/mono --address 127.0.0.1 Thanks. -Abe On Jul 22, 2004, at 6:47 PM, Erik Dasque wrote: mod_mono doesn't work on MacOS X right now (http://bugzilla.ximian.com/show_bug.cgi?id=60766 and others), I believe. On Jul 22, 2004, at 1:08 PM, Abe Gillespie wrote: Hey guys, Well, I finally broke down and bought Panther and Mono finally compiles and installs! However, I can't get mod_mono to work. I keep getting Service Temporarily Unavailable I think this has been addressed before. How does one go about searching the list archives? I think someone described a way you can do it in Google. Thanks for the help. -Abe ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] Re: XSP on Mac is broken, was mod_mono on Mac + searching the list
Yes, there is a bug open (soon re-open AFAIU) about this. Erik On Jul 24, 2004, at 4:30 PM, Abe Gillespie wrote: Ok, I found the issue in an older post: http://lists.ximian.com/archives/public/mono-list/2004-July/022060.html OT - BTW, is this considered top-posting. If so, why is it bad etiquette? If not, what is? Sorry, just trying to be a good netizen. Thanks for all the help as always. Eagerly looking forward to ASP.NET on my Mac. -Abe On Jul 24, 2004, at 3:53 PM, Abe Gillespie wrote: Does XSP also not work on MacOS X? ... I'm getting this when I hit a page served by XSP: Adding applications '/mono:/mono'... Registering application: Host: any Port: any Virtual path: /mono/ Physical path: /mono Listening on port: 8080 Listening on address: 127.0.0.1 Root directory: /Users/abe/Sites Hit Return to stop the server. ** ERROR **: file exceptions-ppc.c: line 930 (ves_icall_get_trace): assertion failed: (ji != NULL) aborting... ./startxsp: line 1: 3757 Abort trap mono /usr/local/bin/xsp.exe --root /Users/abe/Sites --applications /mono:/mono --address 127.0.0.1 * Things are ok up to this point, Then I try to access a page and ... ** ERROR **: file exceptions-ppc.c: line 930 (ves_icall_get_trace): assertion failed: (ji != NULL) aborting... ./startxsp: line 1: 3285 Abort trap mono /usr/local/bin/xsp.exe --root /Users/abe/Sites/mono --applications /mono:/mono --address 127.0.0.1 Thanks. -Abe On Jul 22, 2004, at 6:47 PM, Erik Dasque wrote: mod_mono doesn't work on MacOS X right now (http://bugzilla.ximian.com/show_bug.cgi?id=60766 and others), I believe. On Jul 22, 2004, at 1:08 PM, Abe Gillespie wrote: Hey guys, Well, I finally broke down and bought Panther and Mono finally compiles and installs! However, I can't get mod_mono to work. I keep getting Service Temporarily Unavailable I think this has been addressed before. How does one go about searching the list archives? I think someone described a way you can do it in Google. Thanks for the help. -Abe ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] mod_Mono or XSP ???
Can any one explain to me the diference between mod_mono+Apache and XSP ??? I don't like XSP, everytime i compile my solution i have to stop XSP and start it again .. this is not very productive. I've read in tutorials that we can have mod_mono + Apache solution .. this solution does not include XSP !!?? How can i configure my Apache for do not restart XSP everytime ?? tkx in advace (()) Paulo Aboim Pinto Odivelas - Portugal ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list