Page 1 of 1

WinForm Designer Crash (Testcase include)

Posted: Thu Aug 14, 2014 7:18 am
by Haraldf
Hi,

we noticed a bug in the WinForm Designer (maybe other Designer versions are affected, too).

We have a report with a large amount of images.

The Designer works, the report works great!

However when having Reg'ed data, and when switching between the designer and de preview
tab, the desinger crashes. You might have to switch a view times.

Hint: we could make the problem "less worse" in our production code, when switching from System.Drawing.Image
to System.Drawing.Bitmap. But in this example it seams that there is no difference.

We also tested "FUL_2014.08.08.zip"

Code: Select all

   at System.Drawing.Image.get_Width()
   at Stimulsoft.Report.Painters.StiViewGdiPainter.PaintImage(StiView view, Graphics g, RectangleD rect)
   at Stimulsoft.Report.Painters.StiViewGdiPainter.Paint(StiComponent component, StiPaintEventArgs e)
   at Stimulsoft.Report.Painters.StiImageGdiPainter.Paint(StiComponent component, StiPaintEventArgs e)
   at Stimulsoft.Report.Painters.StiContainerGdiPainter.PaintComponents(StiContainer container, StiPaintEventArgs e)
   at Stimulsoft.Report.Painters.StiBandGdiPainter.Paint(StiComponent component, StiPaintEventArgs e)
   at Stimulsoft.Report.Painters.StiContainerGdiPainter.PaintComponents(StiContainer container, StiPaintEventArgs e)
   at Stimulsoft.Report.Painters.StiPageGdiPainter.Paint(StiComponent comp, StiPaintEventArgs e)
   at Stimulsoft.Report.Design.Controls.StiViewControl.Draw(Graphics g, Rectangle clipRect)
   at Stimulsoft.Report.Design.Controls.StiViewControl.OnPaint(PaintEventArgs e)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)

Re: WinForm Designer Crash (Testcase include)

Posted: Thu Aug 14, 2014 10:38 am
by HighAley
Hello.

We have reproduced your issue.
We need some time for analysis.

Thank you.

Re: WinForm Designer Crash (Testcase include)

Posted: Thu Aug 14, 2014 10:44 am
by Haraldf
Hello Aleksey,

happy debugging ;)

It took me a while to get the testcase.

Hopefully the fix will make it in 2014.2

Re: WinForm Designer Crash (Testcase include)

Posted: Thu Aug 14, 2014 1:58 pm
by HighAley
Hello.

I think we will solve this problem earlier and let you know about it.

Thank you.

Re: WinForm Designer Crash (Testcase include)

Posted: Mon Aug 18, 2014 10:45 am
by HighAley
Hello, Herald.

This problem was connected with disposing all image objects after returning from Preview tab.
We have made an improvement. Please, use next static option with our next prerelease build which will be available on Friday.

Code: Select all

StiOptions.Engine.Image.UseImageCloning = true;
Thank you