WinForm Designer Crash (Testcase include)

Stimulsoft Reports.NET discussion
Post Reply
Haraldf
Posts: 24
Joined: Thu Dec 05, 2013 8:21 pm

WinForm Designer Crash (Testcase include)

Post 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)
Attachments
DesignerBug.zip
(13.48 KiB) Downloaded 122 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: WinForm Designer Crash (Testcase include)

Post by HighAley »

Hello.

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

Thank you.
Haraldf
Posts: 24
Joined: Thu Dec 05, 2013 8:21 pm

Re: WinForm Designer Crash (Testcase include)

Post by Haraldf »

Hello Aleksey,

happy debugging ;)

It took me a while to get the testcase.

Hopefully the fix will make it in 2014.2
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: WinForm Designer Crash (Testcase include)

Post by HighAley »

Hello.

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

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: WinForm Designer Crash (Testcase include)

Post 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
Post Reply