[Mono-bugs] [Bug 490106] New: Application stop responding after calling Hide() method from Thread

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 30 05:17:55 EDT 2009


https://bugzilla.novell.com/show_bug.cgi?id=490106


           Summary: Application stop responding after calling Hide()
                    method from Thread
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: x86
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: yuriy at krk.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=282793)
 --> (https://bugzilla.novell.com/attachment.cgi?id=282793)
simle application to reproduse the bug

Description of Problem:

Application stop responding after calling Hide() method from Thread

Program (see attachement) should display icon in system tray, and show form
after choosing "Show Form" in context menu.
Method myForm.Run work in another thread. Method runs simple loop which should
hide myForm every 10 seconds.

Hide() works fine if it invokes from myForm.OnClick, but after calling Hide()
from the Thread (myForm.Run()) application stop responding to anything and
process "mono" start using about 99% CPU

Steps to reproduce the problem:
1. Sample code in attachement, build is and run
2. Dots will appear in console every secong - it means that thread (myForm.Run)
is running
3. Left Click on icon in SystemTray
4. Choose "Show Form"
5. Wait a bit
6. Dots will stop to appear
7. That's it.


Actual Results:
application stop responding to anything and process "mono" start using about
99% CPU


Expected Results:
myForm should become invisible, as it have been before clicking "ShowForm"

How often does this happen? 
every time

Additional Information:
I use Linux Fedora 9, think it should be similar to RedHat

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list