Intermitten Overflow Exception thrown By PdfGraphics.DrawImage

Hello,


I get an Overflow Exception that occurs intermittently when calling PdfGraphics.DrawImage(). It seems to occur roughly 10% of the time. The call stack is below. Any help resolving this problem would truly be appreciated. Thanks.

Call Stack:

System.OverflowException: Arithmetic operation resulted in an overflow.
at Syncfusion.Pdf.Graphics.PdfBitmap.SaveAsRawImage()
at Syncfusion.Pdf.Graphics.PdfBitmap.SaveImageByFormat()
at Syncfusion.Pdf.Graphics.PdfBitmap.Save()
at Syncfusion.Pdf.Graphics.PdfBitmap.SetMask()
at Syncfusion.Pdf.Graphics.PdfBitmap.Save()
at Syncfusion.Pdf.Graphics.PdfGraphics.DrawImage(PdfImage image, Single x, Single y, Single width, Single height)
at Syncfusion.Pdf.Graphics.PdfGraphics.DrawImage(PdfImage image, PointF point, SizeF size)



SyncFusion Product version is 8.303.0.21


1 Reply

GM Geetha M Syncfusion Team June 13, 2011 08:40 AM UTC

Hi Jim,

Thank you for your interest in Syncfusion products.

I am afraid that I am not able to reproduce the problem. I have placed the test sample in the following link:
ImageInsertion-548317770.zip

Could you please modify it and send back to me?

Regards,
Geetha


Loader.
Up arrow icon