Hi,
I am getting an unhandled exception somewhere in the Ribbon of the UltraToolbarsManager. I was not able to trace a code fragment inside my application where it happens, the stack trace shows only Infragistics and Windows Forms modules. The reproduction scenario is very rare, but the few times it has been seen was always when the machine was going to suspend mode. The exception is handled by the Application.ThreadException event handler and I have had no chance to catch from a different location (the form is loaded and run with Applicatioin.Run()).
Here are the exception details:
Das Handle ist ungültigSystem.ComponentModel.Win32ExceptionStack Trace: bei System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation) bei System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize) bei System.Drawing.Graphics.CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize) bei Infragistics.Win.ControlUIElementBase.CaptureOldImage(UIElement element) bei Infragistics.Win.TransitionInfo..ctor(UIElement element, Transition transition, TransitionSettings settings) bei Infragistics.Win.ControlUIElementBase.InitiateTransition(TransitionSettings settings, Transition transition, UIElement element) bei Infragistics.Win.UIElement.InitiateTransition(TransitionSettings settings, UIElementTransitionType transitionType) bei Infragistics.Win.UltraWinToolbars.RibbonGroupUIElement.OnMouseLeave() bei Infragistics.Win.ControlUIElementBase.ElementEntered(UIElement element, Boolean triggerMouseLeavesOnly) bei Infragistics.Win.ControlUIElementBase.SyncMouseEntered(Boolean triggerMouseLeavesOnly, UIElementInputType inputType, Boolean ignoreLastElementEntered) bei Infragistics.Win.ControlUIElementBase.ProcessMouseLeave(Object sender, EventArgs e) bei Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) bei Infragistics.Win.UltraControlBase.OnMouseLeave(EventArgs e) bei Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnMouseLeave(EventArgs e) bei System.Windows.Forms.Control.WmMouseLeave(Message& m) bei System.Windows.Forms.Control.WndProc(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The exception is handled on the same thread as the form gets created, so I suppose that it is not caused by another thread modifying the UI.
I would appreciate any help or hints where to look at.
Best regards,
Michael
Hello,
I created the following case for you: 'CAS-115885-D7Z2M5' and will update you through it.
Your computer needs to go into sleep mode (energy saving). On a notebook you normally and easilly can do this by tapping on the power button of the notebook.
You should not do this with the Start-Button, because that way the form looses focuis.
Thank you for your research and details! Could you please clarify what do you mean by suspend? What do I need to do?
Boris,
I hope you are still listening. Infragistics NetAdvantage for WinForms has a severe bug. The issue is easy to reproduce on Windows 8 and it is absolutely not thread specific.
Create a simple WinForms application
Add UltraToolbarsManager
Make a ribbon with at least one button (might not be necessary but my test application had one)
Move mouse over the button
Go to suspend
This is 100% reprodcuible on Windows 8, not seen on Windows 7.
After resuming you see that the application crashed.
Hmmmmm.....?
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/d55d7789-0454-461c-bb3a-62639c394603/