Report Cache-Files won't delete

Stimulsoft Reports.NET discussion
Post Reply
rksaskia
Posts: 58
Joined: Fri Apr 27, 2012 9:16 am

Report Cache-Files won't delete

Post by rksaskia »

Hello,

we have a report with many thousand pages.
We print the report with Report Cache Mode = on.

In the appdata dir create the report engine a folder StimulsoftReportCache and a sub-folder for every print job. Here are many, many *.mch files.
This folder will not be deleted!

Can I enforce it?

Thanks
Attachments
cachefiles.png
cachefiles.png (53.97 KiB) Viewed 10846 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Report Cache-Files won't delete

Post by HighAley »

Hello.

The .Net Framework have very strange behavior. Sometimes it does not call destructor at all.
So to remove report cache files you should call report.Dispose() method. Or use next structure:

Code: Select all

using  (StiReport report = new StiReport())
{
    .....
}
Thank you.
ddsmith99301
Posts: 52
Joined: Wed May 17, 2017 10:14 pm

Re: Report Cache-Files won't delete

Post by ddsmith99301 »

I realize this is an old post, but I am having this same problem - the build up of the .mch files. I have tried several things to purge the files, but not successful. I just tried report.Dispose. This probably does free up memory that is used, but doesn't delete the cached .mch files. I need to have those files purged. Any help will be appreciated.
Lech Kulikowski
Posts: 6323
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Cache-Files won't delete

Post by Lech Kulikowski »

Hello,

Please clarify what product and version are you use?

Thank you.
ddsmith99301
Posts: 52
Joined: Wed May 17, 2017 10:14 pm

Re: Report Cache-Files won't delete

Post by ddsmith99301 »

Stimulsoft Ultimate 2019.3.1
Lech Kulikowski
Posts: 6323
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Cache-Files won't delete

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue.
Please check the last release build.

Thank you.
Post Reply