We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Getting exception with TabControlAdv control

One of the users of our application was getting below exception with syncfusion tab control. What is the reason for these kind of exceptions?

2019-09-10 11:44:42,329 [UI Thread] ERROR root - System.InvalidOperationException: Object is currently in use elsewhere.
   at System.Drawing.Graphics.GetHdc()
   at Syncfusion.Windows.Forms.ControlDrawing.MeasureDisplayStringSize(Graphics graphics, String text, Font font, Boolean mirrored, Int32 width)
   at Syncfusion.Windows.Forms.Tools.TabRendererBase.MeasureText(Graphics g, String text, Font font)
   at Syncfusion.Windows.Forms.Tools.TabRendererBase.GetItemPreferredSize(Graphics g)
   at Syncfusion.Windows.Forms.Tools.TabPanelRenderer.GetLargestHeight(Graphics g)
   at Syncfusion.Windows.Forms.Tools.SingleLineTabPanelRenderer.ComputeTabPositions(Graphics g)
   at Syncfusion.Windows.Forms.Tools.TabPanelRenderer.Layout(Graphics g, Boolean fromPaint)
   at Syncfusion.Windows.Forms.Tools.TabControlAdv.Layout(Graphics g, Boolean fromPaint)
   at Syncfusion.Windows.Forms.Tools.TabControlAdv.OnLayout(LayoutEventArgs levent)
   at System.Windows.Forms.Control.PerformLayout(LayoutEventArgs args)
   at System.Windows.Forms.Control.OnResize(EventArgs e)
   at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
   at Syncfusion.Windows.Forms.Tools.TabControlAdv.OnSizeChanged(EventArgs e)
   at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
   at System.Windows.Forms.Control.UpdateBounds()
   at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at Syncfusion.Windows.Forms.Tools.TabControlAdv.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


1 Reply

KP Kanniyappan Panneer Selvam Syncfusion Team September 17, 2019 09:13 AM UTC

Hi Thomas DiLello,  
 
Thanks for contacting Syncfusion support. 
 
We were tried to reproduce the reported InvalidOperationException based on the provided stack trace. But, we are unable to reproduce it at our end. Currently we are working on this issue and we will provide the fix for the reported issue based on the stack trace same on September 20th , 2019.  
 
We appreciate your patience until then. 
 
Regards, 
Kanniyappan P 


Loader.
Live Chat Icon For mobile
Up arrow icon