简体   繁体   English

使用CacheToDisk时,不会删除PDF * .tmp文件和Out of Memory Exception

[英]PDF*.tmp file are not deleted and Out of Memory Exception when CacheToDisk is used

We are using ActiveReports in our project, in the code we are using CacheToDisk property to avoid memory exception. 我们在我们的项目中使用ActiveReports,在代码中我们使用CacheToDisk属性来避免内存异常。 We used WCF service, which will call a method in dll which contains the ActiveReport Report generation. 我们使用了WCF服务,它将在dll中调用包含ActiveReport Report生成的方法。 The WCF service is hosted in Windows Service. WCF服务托管在Windows服务中。

When reports are exported to PDF, in IsolatedStorage folder the PDF*.tmp files are created and it is not deleted automatically. 将报表导出为PDF时,在IsolatedStorage文件夹中将创建PDF * .tmp文件,并且不会自动删除它。 We used Dispose() method of the Document object, the AR*.tmp files are removed but PDF*.tmp files (each file around 100 MB) are not removed. 我们使用了Document对象的Dispose()方法,删除了AR * .tmp文件,但是没有删除PDF * .tmp文件(每个文件大约100 MB)。 We hard coded the IsolatedStorage folder and gave full permission to the user, under which Windows Service is running. 我们对IsolatedStorage文件夹进行了硬编码,并为运行Windows服务的用户提供了完全权限。

Please let us know how to delete the PDF*.tmp files automatically in IsolatedStorage folder ? 请告诉我们如何在IsolatedStorage文件夹中自动删除PDF * .tmp文件? Also some times we get out of memory exception for some reports even after using CacheToDisk (exporting to excel or pdf) and some times the Windows Service itself stopped automatically due to memory exception. 有些时候,即使在使用CacheToDisk(导出到excel或pdf)之后,某些报告也会出现内存不足的情况,有时由于内存异常,Windows服务本身会自动停止。

Varun Varun的

We have been working on getting your issue resolved through your post here at: http://www.datadynamics.com/forums/145096/ShowPost.aspx Please follow up on the post on this forum to see if the related issue is resolved or not. 我们一直在努力通过您的帖子解决您的问题: http//www.datadynamics.com/forums/145096/ShowPost.aspx请关注此论坛上的帖子,看看相关问题是否已解决或不。

I will update this post once we have a final resolution. 一旦我们得到最终解决方案,我会更新这篇文章。

Thanks 谢谢

raji 的Raji

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM