Posted 6 February 2020, 1:13 am EST
… trying to figure out the problem. Note: the application is multithreaded. Once in a while this exception happens:
System.InvalidOperationException: Object is currently in use elsewhere.
Trace:
at System.Drawing.Image.get_RawFormat()
at System.Drawing.Graphics.DrawImage(Image image, Rectangle destRect, Int32 srcX, Int32 srcY, Int32 srcWidth, Int32 srcHeight, GraphicsUnit srcUnit, ImageAttributes imageAttrs, DrawImageAbort callback, IntPtr callbackData)
at C1.Win.C1InputPanel.InputUtil.ExtractImageH(Image batchImage, Int32 index, Int32 count)
at C1.Win.C1InputPanel.InputTheme…ctor(VisualStyle visualStyle)
at C1.Win.C1InputPanel.InputTheme.GetTheme(VisualStyle visualStyle)
at C1.Win.C1InputPanel.XInputPanel.get_ThemeStyleSet()
at C1.Win.C1InputPanel.XInputPanel.ApplyTheme()
at C1.Win.C1InputPanel.C1InputPanel.ReapplyTheme()
at C1.Win.C1InputPanel.XInputPanel.set_VisualStyle(VisualStyle value)
at C1.Win.C1InputPanel.C1InputPanel.OnAmbientChangedVisualStyle()
Can you help point us in the right direction for seeing how to fix this?