[Mono-dev] [Patch]Console.ReadKey() echo twice in Microsoft Windows console

2008-04-21 Thread Yan-ren Tsai
Hi, I had noticed when I press any key in booish and ipy, the console will echo twice. Then I try to hack. I found that is because Console.ReadKey() had some problem. So I do a little patch as attachment. I hope it is useful. Regards, WindowsConsoleDriver.cs.patch Description: Binary data

Re: [Mono-dev] [Mono-osx] IOKit Enumeration

2008-04-21 Thread Geoff Norton
Josh, At a high level it does, but this conversation should be moved over to mono-devel-list, so that the approrpiate maintainers (Dick Porter) can weigh in. I've cc'd Dick and the mono-devel-list, dropping mono- osx. -g On 21-Apr-08, at 2:32 AM, Joshua Perry wrote: It seems that I

Re: [Mono-dev] [PATCH] HMAC bug

2008-04-21 Thread Sebastien Pouliot
Hello, It's in SVN. Thanks for the patch and test case! Sebastien On Mon, 2008-04-21 at 11:52 +0900, Kazuki Oikawa wrote: Hi. HMAC function return wrong result if message is part of array. I made a patch to fix this bug. Please review it. plain text document attachment (HMAC.patch)

Re: [Mono-dev] crashes in glib hangs (not exits) program

2008-04-21 Thread D Bera
I noticed that some unmanaged crashes in glib could leave the program running but hanged. See below for a sample program (the bad g_free was used to deliberately crash). Did some more testing to reveal that Mono behaves unpredictably upon crashes in unmanaged glib. I have filed a bug with a

[Mono-dev] patch for System.Core

2008-04-21 Thread Leonid Freydovich
Hi, Attached is a patch for System.Core assembly. We have found some bugs in the implementation of the Queryable extension methods. The bugs were mostly around whether to call 'Provider.Execute' or 'Provider.CreateQuery'. The patch also contains tests that support the fix. Please review.

Re: [Mono-dev] crashes in glib hangs (not exits) program

2008-04-21 Thread Robert Jordan
D Bera wrote: I noticed that some unmanaged crashes in glib could leave the program running but hanged. See below for a sample program (the bad g_free was used to deliberately crash). Did some more testing to reveal that Mono behaves unpredictably upon crashes in unmanaged glib. I have

Re: [Mono-dev] crashes in glib hangs (not exits) program

2008-04-21 Thread D Bera
I noticed that some unmanaged crashes in glib could leave the program running but hanged. See below for a sample program (the bad g_free was used to deliberately crash). Did some more testing to reveal that Mono behaves unpredictably upon crashes in unmanaged glib. I have filed

Re: [Mono-dev] crashes in glib hangs (not exits) program

2008-04-21 Thread Robert Jordan
Hi, D Bera wrote: I am not asking mono recover from a crash. I am merely asking mono to not hang. That is an unpredicable behaviour since people want a program to either run or not run but not stay in a middle state of doing nothing. Hope I am clear this time. Looking at the stack trace I

Re: [Mono-dev] crashes in glib hangs (not exits) program

2008-04-21 Thread D Bera
doing nothing. Hope I am clear this time. Looking at the stack trace I _think_ its just some bug in mono's after-crash-stacktrace-printer which is causing the problem. Mono's behaviour (and yours too) is absolutely right otherwise. It's most likely the g_spawn* that gets the stack

Re: [Mono-dev] crashes in glib hangs (not exits) program

2008-04-21 Thread Alan McGovern
For some reason, catching the unmanaged exception has the correct behaviour even though it could be just a side effect. Zoltan pointed out that unmanaged exceptions are not converted to exceptions in mono even though the windows side seem to do it and recomment using

Re: [Mono-dev] patch for System.Core

2008-04-21 Thread Jb Evain
Hey, On 4/21/08, Leonid Freydovich [EMAIL PROTECTED] wrote: The bugs were mostly around whether to call 'Provider.Execute' or 'Provider.CreateQuery'. The patch also contains tests that support the fix. The patch looks good. Please do reformat your code before checking in, the whole patch

Re: [Mono-dev] crashes in glib hangs (not exits) program

2008-04-21 Thread Jonathan Pryor
On Mon, 2008-04-21 at 16:34 +0100, Alan McGovern wrote: For some reason, catching the unmanaged exception has the correct behaviour even though it could be just a side effect. Zoltan pointed out that unmanaged exceptions are not converted to exceptions in mono even though the windows

[Mono-dev] Searching the GAC w/ the embedded API

2008-04-21 Thread Casey Marshall
I'm developing an application that will embed Mono, and I'd like to be able to find classes by name by searching what's installed in the GAC, instead of specifying the assembly to get the class from. That is, I'm following the recipe from the embedding mono web page: - Create a domain. -

Re: [Mono-dev] Searching the GAC w/ the embedded API

2008-04-21 Thread Robert Jordan
Hi, Casey Marshall wrote: I'm developing an application that will embed Mono, and I'd like to be able to find classes by name by searching what's installed in the GAC, instead of specifying the assembly to get the class from. That is, I'm following the recipe from the embedding mono web

Re: [Mono-dev] Searching the GAC w/ the embedded API

2008-04-21 Thread Casey Marshall
On Mon, 2008-04-21 at 21:44 +0200, Robert Jordan wrote: Hi, Casey Marshall wrote: I'm developing an application that will embed Mono, and I'd like to be able to find classes by name by searching what's installed in the GAC, instead of specifying the assembly to get the class from.

Re: [Mono-dev] Searching the GAC w/ the embedded API

2008-04-21 Thread Robert Jordan
Casey Marshall wrote: Also, is it possible to disable the crash dump in mono? I'm using abort() in a test suite, and it would be nice to not have a screenful of gdb info when a test fails. Use assert(3) or glib's g_assert() instead. Oh, oops, I mean I'm using assert. Sorry. This is raising

[Mono-dev] Embedding Mono + SWIG string return values leads to bad free

2008-04-21 Thread Ewen Cheslack-Postava
Hi, I'm embedding Mono and using SWIG to wrap a few simple C++ objects. They use PInvoke to wrap these objects and for string/char* return values they use a C# delegate in order to obtain a string owned by the GC so it can safely be returned. They use a simple C# static method where the string

Re: [Mono-dev] [PATCH] Add mixed-mode assembly support on Windows

2008-04-21 Thread Kornél Pál
Hi, Thank you very much for pointing out this difference. Note that if it's really necessary I prefer to create a mono_runtime_init or similar callback supplied by mini over splitting the code because MonoFixupCorEE requires the address of the other functions and is used by metadata so it

[Mono-dev] 1.9.1 Mono Release

2008-04-21 Thread Wade Berrier
Hi, We've released 1.9.1 as a minor bugfix update to 1.9. The release notes are here: http://go-mono.com/archive/1.9.1/ and downloads are available here: http://www.mono-project.com/Downloads Thanks to all those who contributed to this release. Enjoy! Wade signature.asc Description: This

[Mono-dev] Compiling Mono from Source Code

2008-04-21 Thread Paramesh Gunasekaran
Hi All, I've a novice user of Mono. I'm trying to build Mono from source code. I've installed Cygwin and checked-out the source code from SVN. While building using ./autogen.sh, I'm getting some errors and the build failed. I'm attaching the build log file with this mail. Can anyone please guide

Re: [Mono-dev] crashes in glib hangs (not exits) program

2008-04-21 Thread Mads Bondo Dydensborg
mandag 21 April 2008 skrev Robert Jordan: Hi, D Bera wrote: I am not asking mono recover from a crash. I am merely asking mono to not hang. That is an unpredicable behaviour since people want a program to either run or not run but not stay in a middle state of doing nothing. Hope I am