Jump to content
Software FX Community

Exception on Refresh

User (Legacy)

Recommended Posts


I'm having a strange problem where an exception is generated when the Chart

is refreshed only when the Toolbar is visible. The exception text is pasted

below. If the Toolbar is not visible this error does not occur. The

problem seems to be sporadic. After the exception is raised, the ToolBar

area is painted white with a red "X". Any ideas?



************** Exception Text **************

System.InvalidOperationException: The object is currently in use elsewhere.

at System.Drawing.Imaging.ImageAttributes.Dispose(Boolean disposing)

at System.Drawing.Imaging.ImageAttributes.Dispose()

at SoftwareFX.ChartFX.Base.PaintXP.SyncSystem(Boolean bMenu, CommandStyle


at SoftwareFX.ChartFX.Base.ToolBar.0Z(Graphics AZ)

at SoftwareFX.ChartFX.Base.ToolBar.10(PaintBar B0, PaintInfo& B1)

at SoftwareFX.ChartFX.M.5T(PaintBar 17J, PaintInfo& 17K, IBarClient 17L)

at SoftwareFX.ChartFX.G.4N(PaintBar 163, PaintInfo& 164)

at SoftwareFX.ChartFX.G.OnPaint(PaintEventArgs e)

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)


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...