[Mono-bugs] [Bug 78907][Nor] New - [Windows] Changing Visual Style Crashes MWF

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 20 10:33:51 EDT 2006

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by monkey at jpobst.com.


--- shadow/78907	2006-07-20 10:33:50.000000000 -0400
+++ shadow/78907.tmp.29521	2006-07-20 10:33:50.000000000 -0400
@@ -0,0 +1,74 @@
+Bug#: 78907
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: Windows XP
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: monkey at jpobst.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: [Windows] Changing Visual Style Crashes MWF
+Description of Problem:
+If you change your Visual Style while running a MWF program, it crashes with:
+Unhandled Exception: System.NotImplementedException: Need to implement
+ResetDefaults() for Win32 theme 
+at System.Windows.Forms.ThemeWin32Classic.ResetDefaults () [0x00000]
+at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message m)
+at System.Windows.Forms.ScrollableControl.WndProc
+(System.Windows.Forms.Message m) [0x00000]  
+at System.Windows.Forms.ContainerControl.WndProc
+(System.Windows.Forms.Message m) [0x00000]
+at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message m) [0x00000]
+at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message m) [0x00000]
+at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
+wParam, IntPtr lParam) [0x00000]
+at (wrapper native-to-managed) System.Windows.Forms.NativeWindow:WndProc
+at <0x00000> <unknown method>
+at (wrapper managed-to-native)
+at System.Windows.Forms.XplatUIWin32.GetMessage (System.Windows.Forms.MSG
+msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, Boolean blocking)
+at System.Windows.Forms.XplatUIWin32.GetMessage (System.Object queue_id,
+System.Windows.Forms.MSG msg, IntPtr hWnd, Int32 wFilterMin, Int32
+wFilterMax) [0x00000]
+at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id,
+System.Windows.Forms.MSG msg, IntPtr hWnd, Int32 wFilterMin, Int32
+wFilterMax) [0x00000]
+at System.Windows.Forms.Application.RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context) [0x00000]
+at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
+mainForm) [0x00000]
+at BugDemo.Form1.Main () [0x00000]
+Steps to reproduce the problem:
+1. Run any MWF program displaying a form on Windows XP, one is attached.
+2. Change Window's Visual Style (Control Panel-> Display-> Appearance->
+Windows and buttons -or- Color scheme).
+Actual Results:
+Mono crashes with above exception.
+Expected Results:
+For 2.0, it should raise
+Microsoft.Win32.SystemEvents.UserPreferenceChanging and
+Microsoft.Win32.SystemEvents.UserPreferenceChanged with a category of
+For 1.1, it should just not crash and invalidate and redraw any open forms.
+How often does this happen? 

More information about the mono-bugs mailing list