[Mono-aspnet-list] How does asp.net mono work?

2012-03-12 Thread neilm
I am new to Mono asp.net been working with MS asp.net for years. When working with MS asp.net I make changes to the code behind ftp the file to the server, open a browser instantiate the page and the server compiles the page upon the request, no compiling on my part, no DLL ftp'ed to the server.

Re: [Mono-aspnet-list] How does asp.net mono work?

2012-03-12 Thread Stifu
Could it be you're describing the behavior of web app vs web site? http://msdn.microsoft.com/en-us/library/dd547590.aspx neilm wrote I am new to Mono asp.net been working with MS asp.net for years. When working with MS asp.net I make changes to the code behind ftp the file to the server,

[Mono-dev] bug 3860 - DirectoryInfo.GetFileSystemInfos returns a subdirectory that has unicode chars with the incorrect name

2012-03-12 Thread Jared Watts
I opened bug 3860https://bugzilla.xamarin.com/show_bug.cgi?id=3860 earlier today, but I’m curious if anyone on the dev list has run into a similar issue or knows of a workaround. https://bugzilla.xamarin.com/show_bug.cgi?id=3860 Basically, on Mac OS X, Directory.CreateDirectory is used to

Re: [Mono-dev] bug 3860 - DirectoryInfo.GetFileSystemInfos returns a subdirectory that has unicode chars with the incorrect name

2012-03-12 Thread Atsushi Eno
I'm not very familiar with Macs but maybe because file names under OSX file system are based on Unicode NFD variant? Atsushi Eno Jared Watts wrote: I opened bug 3860 https://bugzilla.xamarin.com/show_bug.cgi?id=3860 earlier today, but I’m curious if anyone on the dev list has run into a

Re: [Mono-list] Why does mono crash?

2012-03-12 Thread xplicit
I am trying to figure out, what can be issue. The general suspicious lies on the code, which improperly working with generic dictionary in multi-threaded environment (no locks on TryGetValue, etc). But there is question, i'm trying to find an answer: how can bad locking totally crash the mono?? I

Re: [Mono-list] Why does mono crash?

2012-03-12 Thread Rodrigo Kumpera
Please file a bug report and attach a test case so we can figure out what's going on and fix it. On Mon, Mar 12, 2012 at 8:37 AM, xplicit s...@ngs.ru wrote: I am trying to figure out, what can be issue. The general suspicious lies on the code, which improperly working with generic dictionary

[Mono-list] Embedded Mono using DllImport(__Internal) and returning string

2012-03-12 Thread efontana
I'm using Embedded Mono and P/Invoke DllImport. If I have a method which returns a string [DllImport(__Internal, EntryPoint = CSharp_Test_ReturnString)] public extern static string CSharp_Test_ReturnString(); The corresponding C method should strdup the string right? extern C { char*

Re: [Mono-list] Embedded Mono using DllImport(__Internal) and returning string

2012-03-12 Thread Robert Jordan
On 12.03.2012 20:51, efontana wrote: I'm using Embedded Mono and P/Invoke DllImport. If I have a method which returns a string [DllImport(__Internal, EntryPoint = CSharp_Test_ReturnString)] public extern static string CSharp_Test_ReturnString(); The corresponding C method should

Re: [Mono-list] Embedded Mono using DllImport(__Internal) and returning string

2012-03-12 Thread Jonathan Pryor
On Mar 12, 2012, at 3:51 PM, efontana wrote: I'm using Embedded Mono and P/Invoke DllImport. If I have a method which returns a string ... The corresponding C method should strdup the string right? Probably not. During string marshaling, the pointer returned from CSharp_Test_ReturnString()

Re: [Mono-list] Embedded Mono using DllImport(__Internal) and returning string

2012-03-12 Thread efontana
Well, for Windows, I changed the code to do the following: #ifdef WIN32 char* CSharp_Test_String() { string s = hello world; int len = s.length(); char* comem = (char*)CoTaskMemAlloc(len+1); strcpy(comem, s.c_str()); return comem; } #endif Only problem is, when I print the string out from