Did you ever resolve this? I'm on 10.3 and getting the same thing:
System.ComponentModel.Win32Exception was unhandled by user code Message=The operation completed successfully Source=System.Drawing ErrorCode=-2147467259 NativeErrorCode=0 StackTrace: at System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation) at System.Drawing.Graphics.CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize) at Infragistics.Win.ControlUIElementBase.CaptureOldImage(UIElement element) at Infragistics.Win.TransitionInfo..ctor(UIElement element, Transition transition, TransitionSettings settings) at Infragistics.Win.ControlUIElementBase.InitiateTransition(TransitionSettings settings, Transition transition, UIElement element) at Infragistics.Win.UIElement.InitiateTransition(TransitionSettings settings, UIElementTransitionType transitionType) at Infragistics.Win.UltraWinToolbars.Ribbon.OnSelectedTabItemChanging(Object sender, SelectedTabItemChangingEventArgs e) at Infragistics.Win.UltraWinTabs.TabManager.set_SelectedTabItem(ITabItem value) at Infragistics.Win.UltraWinToolbars.Ribbon.InitializeTabManagerSelectedTab(ITabItem tabToSelect, Boolean ignoreSelectedTabEvents, Boolean allowMinimizeRibbonDropDown) at Infragistics.Win.UltraWinToolbars.Ribbon.InitializeTabManagerSelectedTab(ITabItem tabToSelect, Boolean ignoreSelectedTabEvents) at Infragistics.Win.UltraWinToolbars.Ribbon.SetSelectedTab(RibbonTab tab, Boolean expandRibbonIfCollapsed, Boolean forceSkipEvents) at Infragistics.Win.UltraWinToolbars.Ribbon.SetSelectedTab(RibbonTab tab, Boolean expandRibbonIfCollapsed) at Infragistics.Win.UltraWinToolbars.Ribbon.set_SelectedTab(RibbonTab value) at Infragistics.Win.UltraWinToolbars.Ribbon.BringIntoView(UIElement itemElement, RibbonLayoutItemBase layoutItem, RibbonGroup group, ToolBase tool) at Infragistics.Win.UltraWinToolbars.Ribbon.BringIntoView(RibbonGroup group, Boolean canThrowExceptions) at Infragistics.Win.UltraWinToolbars.Ribbon.BringIntoView(RibbonGroup group) at Infragistics.Win.UltraWinToolbars.RibbonGroup.BringIntoView()
And this is at random times:
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4
Exception:
System.ComponentModel.Win32Exception (0x80004005): The operation completed successfully
at System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation)
at System.Drawing.Graphics.CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize)
at Infragistics.Win.ControlUIElementBase.CaptureOldImage(UIElement element)
at Infragistics.Win.TransitionInfo..ctor(UIElement element, Transition transition, TransitionSettings settings)
at Infragistics.Win.ControlUIElementBase.InitiateTransition(TransitionSettings settings, Transition transition, UIElement element)
at Infragistics.Win.UIElement.InitiateTransition(TransitionSettings settings, UIElementTransitionType transitionType)
at Infragistics.Win.UltraWinToolbars.RibbonGroupUIElement.OnMouseEnter()
at Infragistics.Win.ControlUIElementBase.ElementEntered(UIElement element, Boolean triggerMouseLeavesOnly)
at Infragistics.Win.ControlUIElementBase.SyncMouseEntered(Boolean triggerMouseLeavesOnly, UIElementInputType inputType, Boolean ignoreLastElementEntered)
at Infragistics.Win.ControlUIElementBase.ProcessMouseEnter(Object sender, EventArgs e)
at Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e)
at Infragistics.Win.UltraControlBase.OnMouseEnter(EventArgs e)
at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnMouseEnter(EventArgs e)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Hello Philipw,
This is the first time that I am seing such exception, so I dig up a little and there might be few casues for such exception:
1. Having more than 10 000 User Controls/User objects, and than the system just crashes. The solution for this is verifying if your application creating user objects without disposing them. (http://nomagichere.blogspot.com/2008/03/systemcomponentmodelwin32exception-is.html)
2. If you system couldn't create compatible graphics objects (http://stackoverflow.com/questions/1209769/system-componentmodel-win32exception-the-operation-completed-successfully)
Could you please let me know which service release of our NetAdvantage controls for 10.3 exactly you are using and if there are any specific steps that I should follow in order to reproduce suche behavior at my end.If you have any other questions please feel free to ask.
Hi,
I have the same error (Infragistics2.Win.UltraWinDock.v12.1):
But not on all the applications... any idea ??
System.ComponentModel.Win32Exception: L’opération a réussi à System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation) à System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize) à System.Drawing.Graphics.CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize) à Infragistics.Win.ControlUIElementBase.CaptureOldImage(UIElement element) à Infragistics.Win.TransitionInfo..ctor(UIElement element, Transition transition, TransitionSettings settings) à Infragistics.Win.ControlUIElementBase.InitiateTransition(TransitionSettings settings, Transition transition, UIElement element) à Infragistics.Win.UIElement.InitiateTransition(TransitionSettings settings, UIElementTransitionType transitionType) à Infragistics.Win.UltraWinToolbars.Ribbon.RibbonTabManager.MouseLeaveTab(ITabItem tab) à Infragistics.Win.UltraWinTabs.TabItemUIElement.OnMouseLeave() à Infragistics.Win.ControlUIElementBase.ElementEntered(UIElement element, Boolean triggerMouseLeavesOnly) à Infragistics.Win.ControlUIElementBase.ProcessMouseMoveHelper(Object sender, MouseEventArgs e) à Infragistics.Win.ControlUIElementBase.ProcessMouseMove(Object sender, MouseEventArgs e) à Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) à Infragistics.Win.UltraControlBase.OnMouseMove(MouseEventArgs e) à System.Windows.Forms.Control.WmMouseMove(Message& m) à System.Windows.Forms.Control.WndProc(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
AND
System.ComponentModel.Win32Exception: Descripteur non valide à System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize, CopyPixelOperation copyPixelOperation) à System.Drawing.Graphics.CopyFromScreen(Int32 sourceX, Int32 sourceY, Int32 destinationX, Int32 destinationY, Size blockRegionSize) à System.Drawing.Graphics.CopyFromScreen(Point upperLeftSource, Point upperLeftDestination, Size blockRegionSize) à Infragistics.Win.ControlUIElementBase.CaptureOldImage(UIElement element) à Infragistics.Win.TransitionInfo..ctor(UIElement element, Transition transition, TransitionSettings settings) à Infragistics.Win.ControlUIElementBase.InitiateTransition(TransitionSettings settings, Transition transition, UIElement element) à Infragistics.Win.UIElement.InitiateTransition(TransitionSettings settings, UIElementTransitionType transitionType) à Infragistics.Win.UltraWinToolbars.Ribbon.RibbonTabManager.MouseLeaveTab(ITabItem tab) à Infragistics.Win.UltraWinTabs.TabItemUIElement.OnMouseLeave() à Infragistics.Win.ControlUIElementBase.ElementEntered(UIElement element, Boolean triggerMouseLeavesOnly) à Infragistics.Win.ControlUIElementBase.SyncMouseEntered(Boolean triggerMouseLeavesOnly, UIElementInputType inputType, Boolean ignoreLastElementEntered) à Infragistics.Win.ControlUIElementBase.ProcessMouseEnter(Object sender, EventArgs e) à Infragistics.Win.Utilities.ProcessEvent(Control control, ProcessEvent eventToProcess, EventArgs e) à Infragistics.Win.UltraControlBase.OnMouseEnter(EventArgs e) à Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnMouseEnter(EventArgs e) à System.Windows.Forms.Control.WmMouseEnter(Message& m) à System.Windows.Forms.Control.WndProc(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) à System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) à System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I`d like to share our conversation from that case with other community members.
IG:
Thanks for attached stack trace. Could you please answer to the questions below:1. Did you try to install latest available service release for your version ?
2. Are you using Multiple threads in your application
3. Do you have Creation or Draw Filters ?
4. Are you able to send us sample that reproduce the issue ? "
wisy said: 1-no i can't do that 2-Yes 3-No 4-I am unable to reproduce the problem.. it's random
1-no i can't do that
2-Yes
3-No
4-I am unable to reproduce the problem.. it's random
Thanks for the details. Yes, the threads could cause such random issue, if you didn't managing the threads carefully. The Windows Forms controls are NOT thread-safe ( neither is any DotNet controls ), that`s why you should manage your threads (using Mutex, Semaphores, locks and so on) I suppose that you are accessing UI objects from a thread other than the one on which they were created. You must be careful not to manipulate any user-interface objects from a different thread. You can also use the control's BeginInvoke method to manipulate UI objects asynchronously. Use the control's InvokeRequired property to determine whether this is necessary.
I am unable to reproduce the problem.. it's random
I have opened a Support request: CAS-127483-S6T1Y5
Thank you
Hello,
If this doesn’t happen on every machines, then this issue might be Operating System related or maybe the Theme of the OS. Have you been able to isolate this in a simple sample and to extract exact step for reproducing of this issue. Also have you tested the latest Infragistics 13.2 version in order ?
I am waiting for your feedback.