Page 1 of 1

Out of Memory Error???

Posted: Thu Aug 02, 2007 7:22 am
by jayakumargr
Hi,
[ Version Stimulsoft 2006.4]
I have more than 1000 images and 700 Pages. After rendering 360 pages It shows an Error like

" Out of Memory [From File]."

I use following for Image:

Image1.File=Product_Specification.STRING_VALUE;

Here Product_Specification.STRING_VALUE Contains Image Path.

Note:
I checked all Image Extensions. all are JPEG file with size arround 20kb-50kb.
and my RAM size is 2GB.

How To Solve this Error???

Thanks in Advance,
Jayakumar


Out of Memory Error???

Posted: Thu Aug 02, 2007 9:08 am
by Edward
You can solve the task in following ways:

1.
Please set the Report.ReportCacheMode property in "On".

This property starts to cache rendered pages to disk after the predefined number of the pages rendered.

2.
This number of the pages may be predefined. For this please set Report.ReportCacheMode property in "Auto"

After that the first page will be cached after the amount of the pages defined in StiOptions.Engine.ReportCache.LimitForStartUsingCache property.

Path for the report cache may be specified in the following property:

StiOptions.Engine.ReportCache.CachePath

Thank you.

Out of Memory Error???

Posted: Fri Aug 03, 2007 1:38 am
by jayakumargr
Hi,

In My Report i set, Report.ReportCacheMode property is "On".

but i didn't set following properties.
StiOptions.Engine.ReportCache.LimitForStartUsingCache and
StiOptions.Engine.ReportCache.CachePath

i integrate stimulsoft 2006.4 with our application.i can't change the coding part. so i unable to set stioptions property.

After setting Report.ReportCacheMode property in "On", the report will render all pages.after rendering it shows following error.

[serializable]
object reference not set to an instance of object.

How to solve this error???


Thanks in advance,
Jayakumar

Out of Memory Error???

Posted: Sun Aug 05, 2007 12:45 am
by Vital
Please provide full error stack.

Thank you.

Out of Memory Error???

Posted: Mon Aug 06, 2007 12:10 am
by jayakumargr
Hi,

In my application i have integrated stimulsoft 2006.4 version.

The report has more than 1000 images for about 700 Pages.
I used following line in before print event:

Image1.File=Product_Specification.STRING_VALUE;

Here Product_Specification.STRING_VALUE Contains Image Path. All Images are JPEG files with the size around 25kb-40kb.

After rendering 360 pages,it shows an Error like

" Out of Memory [From File]."


After setting Report.ReportCacheMode property in "On", the report will render all(700) pages.after rendering it shows following error.

[serializable]
object reference not set to an instance of object.

I am not able to set following properties,
StiOptions.Engine.ReportCache.LimitForStartUsingCache and
StiOptions.Engine.ReportCache.CachePath.

because it will make the application to redistribute to the clients and this is not feasible at this juncture
any help with stimulsoft will be greatly appreciated.

Thanks in Advance,
Jayakumar



Out of Memory Error???

Posted: Mon Aug 06, 2007 1:44 am
by Edward
We will be able to answer you when we will see the full stack of the error.

The exception header like "Out of Memory [From File]" is not enough. Please show full stack error.

Thank you.

Out of Memory Error???

Posted: Mon Aug 06, 2007 3:58 am
by jayakumargr
Hi,
i send full stack error to support stimulsoft.com. please give the solution.

Thanks,
Jayakumar

Out of Memory Error???

Posted: Mon Aug 13, 2007 9:55 am
by Guest
In the event BeforPrint you create object StiImage, which do not destroy later. As a result, occurs memory overflow. You must destroy object or not use it generally.

Thank you.