Out of Memory Error???

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

Out of Memory Error???

Post 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

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

Out of Memory Error???

Post 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.
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

Out of Memory Error???

Post 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
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Out of Memory Error???

Post by Vital »

Please provide full error stack.

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

Out of Memory Error???

Post 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


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

Out of Memory Error???

Post 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.
jayakumargr
Posts: 85
Joined: Sat Jan 20, 2007 4:21 am

Out of Memory Error???

Post by jayakumargr »

Hi,
i send full stack error to support stimulsoft.com. please give the solution.

Thanks,
Jayakumar
Guest
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am

Out of Memory Error???

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