<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix"><br>
      Wish I kept that off list.<br>
      <br>
      Sorry - I am bipolar and have mood swings.  I must have stopped
      myself from sending something similar about 3-5 times before.<br>
      <br>
      Please ignore any 'woe is me' messages - I am not quitting.  I
      finally got home, and my linux machine is working fine with my
      home network.<br>
      <br>
      Like i said, i've learned a lot doing this.<br>
      <br>
      I really have to look at the fix i submitted on the list more
      carefully.  I am not home and should have time, but we're still
      unpacking and stuff, may take a few days to settle down.<br>
      <br>
      If no one applied the fix i submitted on the list, that is ok, it
      may be no better than the original problem anyway.  I need to
      think more carefully about the fix.<br>
      <br>
      There is an easier way to solve this problem than i idd it
      originally.  I just remember when I was looking at the code
      originally there was a mixture of recursive areas and
      non-recursive areas, so i cannot guarantee that i'll be at the
      same level of recursion when i would want to 'back track', but i
      know i can come up with a better solution than i did for 2663
      which doesn't add too much slowness as the current solution does. 
      The benefit of the current solution is i got it to 'work' where
      before it failed.  <br>
      <br>
      -Rob<br>
      <br>
      On 07/29/2012 04:55 PM, Rob Wilkens wrote:<br>
    </div>
    <blockquote
cite="mid:CAAny0=gGJgHat2xeDQt2TfBcL2v24=JqAX3itFQSZgn_yvvNdg@mail.gmail.com"
      type="cite">
      <p>Oops accidentally replied off list </p>
      <div class="gmail_quote">---------- Forwarded message ----------<br>
        From: "Rob Wilkens" <<a moz-do-not-send="true"
          href="mailto:robwilkens@gmail.com">robwilkens@gmail.com</a>><br>
        Date: Jul 29, 2012 4:22 PM<br>
        Subject: Re: [Mono-dev] Patches for mono-winforms<br>
        To: "Steven Boswell II" <<a moz-do-not-send="true"
          href="mailto:ulatekh@yahoo.com">ulatekh@yahoo.com</a>><br>
        <br type="attribution">
        <p>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.</p>
        <div class="elided-text">
          <div class="gmail_quote">On Jul 29, 2012 3:57 PM, "Rob
            Wilkens" <<a moz-do-not-send="true"
              href="mailto:robwilkens@gmail.com" target="_blank">robwilkens@gmail.com</a>>
            wrote:<br type="attribution">
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <p>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. </p>
              <div class="gmail_quote">On Jul 29, 2012 11:44 AM, "Steven
                Boswell II" <<a moz-do-not-send="true"
                  href="mailto:ulatekh@yahoo.com" target="_blank">ulatekh@yahoo.com</a>>
                wrote:<br type="attribution">
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div style="font-size:12pt;font-family:times new
                      roman,new york,times,serif">
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt"><a
                          moz-do-not-send="true"
href="https://github.com/mono/mono/commit/38bdbad5071487a11f4330077c383375dce39840"
                          target="_blank">https://github.com/mono/mono/commit/38bdbad5071487a11f4330077c383375dce39840</a><br>
                      </div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt"><br>
                      </div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">This change
                        introduced a OneIdlePerThread unit test that has
                        never worked for me.  All I get is the following
                        exception:</div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt"><br>
                      </div>
                      <div><font face="times new roman, new york, times,
                          serif">System.InvalidOperationException :
                          Cannot call Invoke or BeginInvoke on a control
                          until the window handle is created</font><br>
                      </div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt"><br>
                      </div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">
                        Patch #18 fixes that by creating a Form type
                        that calls CreateHandle() in its constructor.
                         But now the unit test hangs hard in Mono!</div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">
                        <br>
                      </div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">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</div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt"><br>
                      </div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">I ran the
                        project in .NET, and instead of a hang, I get
                        this exception:</div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt"><br>
                      </div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">
                        System.InvalidOperationException: Cross-threaded
                        operation not valid: Control '' accessed from a
                        thread other than the thread it was created on.</div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">
                        <br>
                      </div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">Patch #18a
                        fixes that by moving the creation of form2 into
                        the right thread.  Now the unit test passes.</div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">
                        <br>
                      </div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">So patch #18a
                        can be checked in, but note that patch #18
                        demonstrates that Mono hangs in a situation
                        where .NET throws an exception.</div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt"><br>
                      </div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt">
                        Steven Boswell</div>
                      <div style="font-family:'times new roman','new
                        york',times,serif;font-size:12pt"><br>
                      </div>
                    </div>
                  </div>
                  <br>
                  _______________________________________________<br>
                  Mono-devel-list mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:Mono-devel-list@lists.ximian.com"
                    target="_blank">Mono-devel-list@lists.ximian.com</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.ximian.com/mailman/listinfo/mono-devel-list"
                    target="_blank">http://lists.ximian.com/mailman/listinfo/mono-devel-list</a><br>
                  <br>
                </blockquote>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>