[Mono-dev] Fwd: Re: Patches for mono-winforms
robwilkens at gmail.com
Sun Jul 29 20:55:03 UTC 2012
Oops accidentally replied off list
---------- Forwarded message ----------
From: "Rob Wilkens" <robwilkens at gmail.com>
Date: Jul 29, 2012 4:22 PM
Subject: Re: [Mono-dev] Patches for mono-winforms
To: "Steven Boswell II" <ulatekh at yahoo.com>
On a bright note, I think my phase of programming for fun is over for now.
It's become clear to me that I am not very good at it. Perhaps in the
future if I read/learn/practice more ill give it an honest effort again. I
am a decent hacker, but at this time an out of practice engineer. Hope I
get to give it another go in the future.
On Jul 29, 2012 3:57 PM, "Rob Wilkens" <robwilkens at gmail.com> wrote:
> The one idle per thread test was first created by me and committed by
> Miguel, but I thought he backed out the whole patch... It was part of a
> bigger patch and was tested on three platforms as a whole.
> On Jul 29, 2012 11:44 AM, "Steven Boswell II" <ulatekh at yahoo.com> wrote:
>> This change introduced a OneIdlePerThread unit test that has never worked
>> for me. All I get is the following exception:
>> System.InvalidOperationException : Cannot call Invoke or BeginInvoke on a
>> control until the window handle is created
>> Patch #18 fixes that by creating a Form type that calls CreateHandle() in
>> its constructor. But now the unit test hangs hard in Mono!
>> I created a project with the unit-test, and when run in Mono, it hangs
>> hard; selecting "Run -> Pause" in MonoDevelop hangs MonoDevelop, and the
>> debugged process chews up 100% of the CPU time
>> I ran the project in .NET, and instead of a hang, I get this exception:
>> System.InvalidOperationException: Cross-threaded operation not valid:
>> Control '' accessed from a thread other than the thread it was created on.
>> Patch #18a fixes that by moving the creation of form2 into the right
>> thread. Now the unit test passes.
>> So patch #18a can be checked in, but note that patch #18 demonstrates
>> that Mono hangs in a situation where .NET throws an exception.
>> Steven Boswell
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list