Re: [Mono-dev] [PATCH] Make mono_dl_register_library into a fallback

2010-07-02 Thread Paolo Molaro
On 07/01/10 Michael Hutchinson wrote: The mono_dl_register_library function can currently be used to register P/Invoke mappings for platforms that do not have a dynamic linker. The attached patch makes it also function as a fallback when the system's dynamic linker cannot resolve the library,

Re: [Mono-dev] [PATCH] Extract mono_exception_get_message_string from mono_print_exception

2010-07-02 Thread Paolo Molaro
On 07/01/10 Michael Hutchinson wrote: The attached patch adds a new mono_exception_get_message_string function to the Mono public API, extracted from mono_print_exception. This makes it possible for embedders easily to convert exceptions to strings without printing them and without using

Re: [Mono-dev] Adding documentation for new namespace

2010-07-02 Thread Chris Bacon
Thanks - it's working fine now. Jonathan Pryor wrote: Make sure you're running monodoc trunk (maybe 2.6; not sure). 2.4 has lots of known+filed+fixed-in-trunk bugs. - Jon On Jul 1, 2010, at 7:11 AM, Chris Bacon ch...@dunelm.org.uk mailto:ch...@dunelm.org.uk wrote: Hi Jon, Thanks for

[Mono-dev] Please help me find a good mono based Bluetooth framework.

2010-07-02 Thread jgossett
Good morning everyone, Is there a good recommended Bluetooth framework for mono? Thank, Joshua Gossett___ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list

[Mono-dev] Patch: Docs for System.Diagnostics.Contracts.Internal

2010-07-02 Thread Chris Bacon
Hi, Attached is a patch that contains documentation for just the System.Diagnostics.Contracts.Internal namespace. Please can I have some feedback so I know if I'm doing things correctly or not. Then I will complete the documentation for the whole System.Diagnostics.Contracts namespace as

Re: [Mono-dev] Proposed Patch - Google Native Client

2010-07-02 Thread Zoltan Varga
Hi, We also had to modify some code that doesn't fall under either of the above defines. Most of these changes revolved around type safety. The modified version of gcc we use to compile Native Client modules is more strict about types, and it caught what look like legitimate issues with

Re: [Mono-dev] [PATCH] Make mono_dl_register_library into a fallback

2010-07-02 Thread Michael Hutchinson
On Fri, Jul 2, 2010 at 6:18 AM, Paolo Molaro lu...@ximian.com wrote: On 07/01/10 Michael Hutchinson wrote: The mono_dl_register_library function can currently be used to register P/Invoke mappings for platforms that do not have a dynamic linker. The attached patch makes it also function as a

Re: [Mono-dev] Proposed Patch - Google Native Client

2010-07-02 Thread Elijah Taylor
Great, glad to hear I made the right choices in those type changes. Thanks for the update. I was hoping for a little more feedback on the x86 codegen changes, particularly from anyone with expertise in the code generation aspects of mono. There's no rush on this, but it would be nice to have

Re: [Mono-dev] Problem in SvcHttpHandler.cs ?

2010-07-02 Thread Atsushi Eno
Hi, Right, thanks for the analysis, that should be fixed, and I have an idea. Though I am now rewriting ASP.NET channel support based on our new HTTP (non-ASP.NET) channel stack and it does not use the code path you mentioned, I'd rather finish the rewrite first and then fix the actual issue.

Re: [Mono-dev] [PATCH] Extract mono_exception_get_message_string from mono_print_exception

2010-07-02 Thread Michael Hutchinson
On Fri, Jul 2, 2010 at 6:28 AM, Paolo Molaro lu...@ximian.com wrote: On 07/01/10 Michael Hutchinson wrote: The attached patch adds a new mono_exception_get_message_string function to the Mono public API, extracted from mono_print_exception. This makes it possible for embedders easily to

Re: [Mono-dev] [PATCH] Extract mono_exception_get_message_string from mono_print_exception

2010-07-02 Thread Michael Hutchinson
On Fri, Jul 2, 2010 at 3:13 PM, Michael Hutchinson m.j.hutchin...@gmail.com wrote: On Fri, Jul 2, 2010 at 6:28 AM, Paolo Molaro lu...@ximian.com wrote: ... Anyway, we can certainly add an helper method, but it should be more general: MonoString *mono_object_to_string (MonoObject *obj,

Re: [Mono-dev] Proposed Patch - Google Native Client

2010-07-02 Thread Zoltan Varga
Hi, I finally managed to read the codegen specific changes, and here are my comments: - I'd prefer the nacl related changes to be in as few places as possible, so later changes by people who don't know nacl won't break nacl support. There are three places where this is not done: -

Re: [Mono-dev] [PATCH] Extract mono_exception_get_message_string from mono_print_exception

2010-07-02 Thread Robert Jordan
Hi Michael, On 02.07.2010 21:13, Michael Hutchinson wrote: Implemented - new patch attached. +MonoString * +mono_object_to_string (MonoObject *obj, MonoObject **exc) +{ + MonoString *str; + MonoMethod *method; + MonoClass *klass; + + klass = obj-vtable-klass; +

Re: [Mono-dev] [PATCH] Extract mono_exception_get_message_string from mono_print_exception

2010-07-02 Thread Robert Jordan
On 02.07.2010 21:43, Robert Jordan wrote: method = mono_object_get_virtual_method (obj, method); This must be method = mono_object_get_virtual_method (obj, to_string); Robert ___ Mono-devel-list mailing list

Re: [Mono-dev] Proposed Patch - Google Native Client

2010-07-02 Thread Elijah Taylor
Hi Zoltan, comments below inline. I'll update with an new diff early next week to address the feedback. On Fri, Jul 2, 2010 at 12:41 PM, Zoltan Varga var...@gmail.com wrote: Hi, I finally managed to read the codegen specific changes, and here are my comments: - I'd prefer the nacl

Re: [Mono-dev] [PATCH] Extract mono_exception_get_message_string from mono_print_exception

2010-07-02 Thread Michael Hutchinson
On Fri, Jul 2, 2010 at 3:43 PM, Robert Jordan robe...@gmx.net wrote: You can get rid of the loop and optimize it further by caching System.Object's ToString method: MonoString * mono_object_to_string (MonoObject *obj, MonoObject **exc) {        static MonoMethod *to_string = NULL;        

Re: [Mono-dev] [PATCH] Extract mono_exception_get_message_string from mono_print_exception

2010-07-02 Thread Rodrigo Kumpera
/* * g_printerr (\nUnhandled Exception: %s.%s: %s\n, exc-vtable-klass-name_space, * exc-vtable-klass-name, message); */ + g_printerr (\nUnhandled Exception: %s\n, message); - + if (free_message) Please remove the whitespace noise. mono_string_to_utf8_checked can't be added to the