Page 1 of 3

Out of Memory Issue[Serious Problem] ???

Posted: Mon Oct 01, 2007 11:31 pm
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








Out of Memory Issue[Serious Problem] ???

Posted: Tue Oct 02, 2007 6:48 am
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.

Out of Memory Issue[Serious Problem] ???

Posted: Tue Oct 02, 2007 7:20 am
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

Out of Memory Issue[Serious Problem] ???

Posted: Tue Oct 02, 2007 7:52 am
by Edward
Thank you very much for the hint.

Please send your image file to Image for analysis.

Thank you.

Out of Memory Issue[Serious Problem] ???

Posted: Wed Oct 03, 2007 4:33 am
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

Out of Memory Issue[Serious Problem] ???

Posted: Thu Oct 04, 2007 3:54 am
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



Out of Memory Issue[Serious Problem] ???

Posted: Fri Oct 05, 2007 1:23 am
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.

Out of Memory Issue[Serious Problem] ???

Posted: Sun Oct 07, 2007 10:56 pm
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

Out of Memory Issue[Serious Problem] ???

Posted: Mon Oct 08, 2007 8:32 am
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.

Out of Memory Issue[Serious Problem] ???

Posted: Tue Oct 09, 2007 4:41 am
by jayakumargr
Hello,
ok. i am waiting for your reply with proper solution.

Thanks in advance,
Jayakumar:biggrin: