Out of Memory Issue[Serious Problem] ???

Stimulsoft Reports.NET discussion
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

Out of Memory Issue[Serious Problem] ???

Post by jayakumargr »

Hi Pavel,

Again i face Out of memory issue while rendering report.

In my database,i create one table called Family table.it consist two columns. one is family_id and Image_file column.

i use sql connection for getting data. that is,

select * from Family

this query returns all the data's available in database(more than 1200 rows).

Next, i will drag & drop databand and put image box in that and wrote following in before print event.

Image1.File=Family.Image_file;

i set aspect ratio and stretch properties for image box.

after rendering 60 pages it produce an Out of memory error.

we have a stireport 2007.2 source code. while i debug that code,i found there is a problem in your StiImage.cs file.

for getting images you use,

this.ImageToDraw=Image.FromFile(File);

this statement throws an exception after rendering 60 pages.

i check all the images(jpeg) which are available in my local machine.there is no problem in it. and also i tried

ReportCacheMode is ON. but i couldn't solve this error.

How to solve this error ???


Regards,
Jayakumar







Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Out of Memory Issue[Serious Problem] ???

Post by Vital »

Hello,
Image1.File=Family.Image_file;
I don't see any problem in this line of code.

May be you can create small sample project which reproduce this problem?

Thank you.
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

Out of Memory Issue[Serious Problem] ???

Post by jayakumargr »

Hi Vital,

thanks for your rply. i found there is a problem in your StiImage.cs file.

following line throws an outofmemory exception.


this.ImageToDraw=Image.FromFile(File);

please check this link,

http://msdn2.microsoft.com/en-us/library/stf701f5.aspx

Regards,
Jayakumar
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Out of Memory Issue[Serious Problem] ???

Post by Edward »

Thank you very much for the hint.

Please send your image file to Image for analysis.

Thank you.
EDV Gradl
Posts: 228
Joined: Sat Jun 17, 2006 9:50 am
Location: Germany

Out of Memory Issue[Serious Problem] ???

Post by EDV Gradl »

Should the problem not be clear from the MSDN page?
OutOfMemoryException

The file does not have a valid image format.

-or-

GDI+ does not support the pixel format of the file.
Seems to me an incopatibel file format for gdi+.

Marco
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

Out of Memory Issue[Serious Problem] ???

Post by jayakumargr »

Hello,

If the Dimension of the jpeg file is 5000x3000 or more then the Out of memory will occur.i have 1227 images with the dimensions around 5512x3249.while rendering it produces the out of memory error.

But i convert those jpeg files to gif(Dimension same) the error doesn't appear.

i couldn't realize what's the reson. i can't send my images to your support team.Because those images are confidential. please try with around 1000 images with more than 5000x3000 dimension and See the Out of memroy Error.

This error may occur while rendering or Exporting document to PDF.

How to Solve this Issue???

Regards,
Jayakumar


Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Out of Memory Issue[Serious Problem] ???

Post by Edward »

Please inform us about amount of the physical memory installed in your computer and the size of the page file in Windows. Maybe increasing of the page file can help you to resolve the issue. If not please send a test application to support[at]stimulsoft.com for analysis.

Thank you.
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

Out of Memory Issue[Serious Problem] ???

Post by jayakumargr »

Hello,
Phisical Memory Size - 2 GB RAM

Page File Size
Minimum Size-8000 MB
Maximum Size-16000 MB

Still the problem not Solved...

Regards,
Jayakumar
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Out of Memory Issue[Serious Problem] ???

Post by Edward »

We've reproduced the issue with too big images. It is very difficult bug to be fixed. We will inform you about our progress.

Thank you for your efforts.
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

Out of Memory Issue[Serious Problem] ???

Post by jayakumargr »

Hello,
ok. i am waiting for your reply with proper solution.

Thanks in advance,
Jayakumar:biggrin:
Post Reply