Nevron Forum

NProgress Bar

https://www.nevron.com/Forum/Topic4634.aspx

By Giovanni La Scala - Monday, December 13, 2010

Hello,

Sometime, using NProgressBar in more than one control, i receive a GDI error "object is in use elsewhere".
Do you know a way to avoid this error?

Here the last part of the stack:
StackTrace: at System.Drawing.Graphics.set_SmoothingMode(SmoothingMode value)
at Nevron.GraphicsCore.N2DDeviceGDI.set_ShapeRenderingMode(ShapeRenderingMode value)
at Nevron.UI.NUIShape.Paint(NPaintContext context, NRectangle bounds)
at Nevron.UI.WinForm.Controls.NSkinPainter.PaintBackground(Graphics g, NSkinState state, NRectangle back, NRectangle glyph)
at Nevron.UI.WinForm.Controls.NSkinPainter.PaintWaitingBar(NWaitingBar bar, Graphics g, NSkin skin)
at Nevron.UI.WinForm.Controls.NWaitingBar.DoSkinPainting(PaintEventArgs e)