Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
"The Object is currently in use elsewhere"
posted

I'm using ultrawintoolbars 5.3 in a project (VS.net C# windows app) on terminal server. Randomly I get the error "the object is currently in use elsewhere." I've searched your forums and found a discussion about this that ended without a stated resolution in the thread. The Infragistics employee that answered was Andrew Smith. He though there was a hotfix for this somewhere. This thread happened Oct 12,2006. Here is the link to the thread:

 http://news.archive.infragistics.com/readmessage?id=%3C7e787976$4227cd95$50f3b@news.infragistics.com%3E&group=infragistics.products.netadvantage.windowsforms.wintoolbars

I'm getting the same exact JIT details as in the thread.

Here is the JIT details:

> ************** Exception Text **************
> System.InvalidOperationException: The object is currently in use
> elsewhere.
>   at System.Drawing.Image.get_Height()
>   at System.Drawing.Image.get_Size()
>   at
> Infragistics.Win.UltraWinToolbars.PopupToolBase.CalculateLogicalSizeOfToolInstance()
>   at Infragistics.Win.UltraWinToolbars.ToolBase.get_WidthResolved()
>   at
> Infragistics.Win.UltraWinToolbars.ToolbarUIElement.PositionChildElements()
>   at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase
> controlElement, Boolean recursive)
>   at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase
> controlElement, Boolean recursive)
>   at Infragistics.Win.UIElement.DrawElement(UIElementDrawParams&
> defaultDrawParams)
>   at Infragistics.Win.UIElement.DrawHelper(Graphics graphics, Rectangle
> invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode,
> Boolean
> clipText, Boolean forceDrawAsFocused)
>   at Infragistics.Win.UIElement.Draw(Graphics graphics, Rectangle
> invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode)
>   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics,
> Rectangle
> invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode,
> Size
> elementSize)
>   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics,
> Rectangle
> invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode)
>   at Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe)
>   at
> Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnPaint(PaintEventArgs
> pe)
>   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
> Int16 layer, Boolean disposeEventArgs)
>   at System.Windows.Forms.Control.WmPaint(Message& m)
>   at System.Windows.Forms.Control.WndProc(Message& m)
>   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
>   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
>   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
> IntPtr wparam, IntPtr lparam)

  • 45049
    posted

    If there's a hot fix of NetAdvantage 2005 Volume 3 for this issue, then you can get it from the My Keys and Downloads page of our website, assuming you have a license key for this version registered.

    No further hot fixes are being made for NetAdvantage 2005 Volume 3, as its maintenance period is retired.  If you still encounter the problem even after testing with the hot fix, I suggest you test with a more recent version of the toolset that is still eligible for maintenance (currently, the oldest such version is NetAdvantage for .NET 2007 Volume 3).  If you can reproduce the behavior in a more recent version, please submit a support request so that a Developer Support Engineer can investigate this issue in more detail.