Out of Memory Error???

Jump to: Board indexStimulsoft Reports product lineStimulsoft Reports.Net

Stimulsoft Reports.Net discussion

Out of Memory Error???

Post Thu Aug 02, 2007 7:22 am

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

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

Out of Memory Error???

Post Thu Aug 02, 2007 9:08 am

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.
Edward
 
Posts: 2596
Joined: Fri Jun 09, 2006 4:02 am

Out of Memory Error???

Post Fri Aug 03, 2007 1:38 am

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

Out of Memory Error???

Post Sun Aug 05, 2007 12:45 am

Please provide full error stack.

Thank you.
Vital
 
Posts: 1279
Joined: Fri Jun 09, 2006 4:04 am

Out of Memory Error???

Post Mon Aug 06, 2007 12:10 am

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


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

Out of Memory Error???

Post Mon Aug 06, 2007 1:44 am

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.
Edward
 
Posts: 2596
Joined: Fri Jun 09, 2006 4:02 am

Out of Memory Error???

Post Mon Aug 06, 2007 3:58 am

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

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

Out of Memory Error???

Post Mon Aug 13, 2007 9:55 am

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.
Guest
 
Posts: 182
Joined: Tue Jun 06, 2006 8:04 am


Return to Stimulsoft Reports.Net

Who is online

Users browsing this forum: Aleksey, Bing [Bot] and 1 guest