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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Getting exception with TabControlAdv control

Thread ID:





147555 Sep 16,2019 09:32 AM UTC Sep 17,2019 09:13 AM UTC WinForms 1
Tags: TabControlAdv
Thomas DiLello
Asked On September 16, 2019 09:32 AM UTC

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)

Kanniyappan Panneer Selvam [Syncfusion]
Replied On 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. 
Kanniyappan P 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon