locked
comctl32.dll AccessViolationException from ComboBox in Server 2016 and Windows 10 RRS feed

  • Question

  • I have a Windows Forms application that experiences intermittent crashes when run on Server 2016 or Windows 10 operating systems. The crashes stop when I run the app in compatibility mode for Windows 8.

    The errors appear to be coming from the ComboBox control. Is this a known issue or are there any code work-arounds?

    The Event Viewer shows two errors:

    Application Error

    • Faulting application name: FilteringTestApp.exe, version: 1.0.0.0, time stamp: 0x5a84bdf4
      Faulting module name: comctl32.dll, version: 6.10.14393.953, time stamp: 0x58ba5809
      Exception code: 0xc0000005
      Fault offset: 0x00025cfe
      Faulting process id: 0x4ec0
      Faulting application start time: 0x01d3a5e811577ab7
      Faulting application path: C:\Users\Administrator\Desktop\Debug\FilteringTestApp.exe
      Faulting module path: C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.14393.953_none_89c2555adb023171\comctl32.dll
      Report Id: 9bfc002f-a2c2-4551-8acb-1ad5c4e7fc7b
      Faulting package full name: 
      Faulting package-relative application ID: 

    .NET Runtime

    • Application: FilteringTestApp.exe
      Framework Version: v4.0.30319
      Description: The process was terminated due to an unhandled exception.
      Exception Info: System.AccessViolationException
         at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.NativeWindow.DefWndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.Control.DefWndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.Control.WmCommand(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.ComboBox.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
         at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
         at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
         at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
         at System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form)
         at System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
         at System.Windows.Forms.Form.ShowDialog()
         at Notification.Shared.FilterEditorControl.btnAddExpression_Click(System.Object, System.EventArgs)
         at System.Windows.Forms.ToolStripItem.RaiseEvent(System.Object, System.EventArgs)
         at System.Windows.Forms.ToolStripButton.OnClick(System.EventArgs)
         at System.Windows.Forms.ToolStripItem.HandleClick(System.EventArgs)
         at System.Windows.Forms.ToolStripItem.HandleMouseUp(System.Windows.Forms.MouseEventArgs)
         at System.Windows.Forms.ToolStripItem.FireEventInteractive(System.EventArgs, System.Windows.Forms.ToolStripItemEventType)
         at System.Windows.Forms.ToolStripItem.FireEvent(System.EventArgs, System.Windows.Forms.ToolStripItemEventType)
         at System.Windows.Forms.ToolStrip.OnMouseUp(System.Windows.Forms.MouseEventArgs)
         at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
         at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.ScrollableControl.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.ToolStrip.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
         at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
         at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
         at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
         at System.Windows.Forms.Application.RunDialog(System.Windows.Forms.Form)
         at System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
         at System.Windows.Forms.Form.ShowDialog()
         at FilteringTestApp.Form1.button1_Click(System.Object, System.EventArgs)
         at System.Windows.Forms.Control.OnClick(System.EventArgs)
         at System.Windows.Forms.Button.OnClick(System.EventArgs)
         at System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs)
         at System.Windows.Forms.Control.WmMouseUp(System.Windows.Forms.Message ByRef, System.Windows.Forms.MouseButtons, Int32)
         at System.Windows.Forms.Control.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.ButtonBase.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.Button.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.Control+ControlNativeWindow.OnMessage(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.Control+ControlNativeWindow.WndProc(System.Windows.Forms.Message ByRef)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
         at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG ByRef)
         at System.Windows.Forms.Application+ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr, Int32, Int32)
         at System.Windows.Forms.Application+ThreadContext.RunMessageLoopInner(Int32, System.Windows.Forms.ApplicationContext)
         at System.Windows.Forms.Application+ThreadContext.RunMessageLoop(Int32, System.Windows.Forms.ApplicationContext)
         at System.Windows.Forms.Application.Run(System.Windows.Forms.Form)
         at FilteringTestApp.Program.Main()

    Thursday, February 15, 2018 4:22 PM