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)