Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Stimulsoft Reports.NET discussion
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Post by patwolf »

In one of my reports I set:

Stimulsoft.Report.StiOptions.Engine.ReportCache.LimitForStartUsingCache = 50;
Stimulsoft.Report.StiOptions.Engine.ReportCache.AmountOfQuickAccessPages = 30;
report.ReportCacheMode = Stimulsoft.Report.StiReportCacheMode.Auto;

Then when running the report on page 50 an exception occurs with this error message:
Method : [ChangeEngineParamsByKeep]
Object reference not set to an instance of an object.

If I set LimitForStartUsingCache to 53 the exception occurs on page 53.

Thanks,
Patrick

Stimulsoft 2009.1.338 on VS 2008; .NET 3.5; SQL Server 2005; C#
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Post by Edward »

Hi Patrick,

Please set report.ReportCacheMode = Stimulsoft.Report.StiReportCacheMode.On

If the error persists, please send a test project to support[at]stimulsoft.com.

Thank you.
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Post by patwolf »

Edward wrote: set report.ReportCacheMode = Stimulsoft.Report.StiReportCacheMode.On
What is the difference between Auto and On please?

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

Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Post by Edward »

Hi Patrick.

The difference here is very simple.

The report will put the very first page into the cache when report.ReportCacheMode = Stimulsoft.Report.StiReportCacheMode.On.

And setting report.ReportCacheMode = Stimulsoft.Report.StiReportCacheMode.Auto tells to the report engine that the first rendered page which will be placed into the cache would have a number from the following static property:

Stimulsoft.Report.StiOptions.Engine.ReportCache.LimitForStartUsingCache

The Stimulsoft.Report.StiOptions.Engine.ReportCache.AmountOfQuickAccessPages parameter must be greater than 5 and sets the number of pages which will be loaded from cache during the navigation through the rendered pages.

Thank you.
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Post by patwolf »

I upgraded to the latest version 2/16 and the error is still happening..
Edward wrote:If the error persists, please send a test project to support[at]stimulsoft.com.
Since I can't send you the whole database how would it work please? Is just sending the report enough?

I also tried CacheAllReportData but it didn't help either.

Thanks,
Patrick

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

Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Post by Edward »

Hi Patrick,

In that case please show the full stack of the error though.

Thank you.
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Post by patwolf »

I would love to know the stack trace myself...

As the exception happens in the designer only a message box comes up with the error message i gave above...

Any idea on how I can get the stack trace from that?

thanks,
Patrick
patwolf
Posts: 90
Joined: Thu May 29, 2008 1:38 pm
Location: Los Angles

Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Post by patwolf »

Hi,

this exception happens in so many reports it's very important that we find a solution for it:
Method : [ChangeEngineParamsByKeep]
Object reference not set to an instance of an object.

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

Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Post by Edward »

Hi Patrick.

The issue must be fixed in the build from the next Monday. We are going to add all necessary changes into this build. Please check it when it is available.

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

Exception: [ChangeEngineParamsByKeep] Object reference not set to an instance of an object.

Post by Vital »

Hello Patrick,

Problem with cache solved. Patch will be available in next prerelease build.

Thank you.
Post Reply