如何修复Microsoft Report(rdlc)中的内存泄漏 [英] How to fix memory leak in Microsoft Report (rdlc)
本文介绍了如何修复Microsoft Report(rdlc)中的内存泄漏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我的C#Windows应用程序使用microsoft report(rdlc)。
我在运行报告时发现内存使用率很高。
后来我发现微软报告存在内存泄漏问题。
我使用.Net 4.0和Visual Studio 2010.
这个问题有什么解决方案或修复方法吗?
非常紧急! ! !
解决方案
我遇到了与.NET 4.5 VS 2013相同的问题
我尝试了几件事,但最终使它工作的是:
在x64中编译项目并使用LocalReport.ReleaseSandBoxAppDomain()
我从这里得到了解决方案的一部分: http://stackoverflow.com/questions/6220915/very-high-memory-usage-in-net-4-0/34184809#34184809 [ ^ ]
< blockquote>你应该看看这些...
.NET 4.0中的内存使用率非常高 [ ^ ]
ReportViewer 10内存泄漏 [ ^ ]
MS Report Viewer内存泄漏 - 任何更新/修复? (WinForms应用程序) [ ^ ]
report-viewer-has-memory-leak-in-local-report-mode [ ^ ]
ms-report-viewer-memory-leak-any-update-fix-winforms-application [ ^ ]
MS-报告-观察者内存泄漏任何更新-FIX-的WinForms-应用一次 [<一个href =http://connect.microsoft.com/VisualStudio/feedback/details/636446/ms-report-viewer-memory-leak-any-update-fix-winforms-application-againtarget =_ blanktitle = 新窗口> ^ ]
查看链接并进行讨论......希望你能从中得到一些东西..
Dear All,
My C# Windows Application uses microsoft report (rdlc).
I found high memory usage while running report.
Later I came to know that microsoft report has memory leak issue.
I uses .Net 4.0 and Visual Studio 2010.
Is there any solution or fix for this issue ?
Its very urgent ! ! !
解决方案
I was having the same issue with .NET 4.5 VS 2013
I tried several things, but what finally made it work was:
Compiling the project in x64 and using LocalReport.ReleaseSandBoxAppDomain()
I got part of the solution from here: http://stackoverflow.com/questions/6220915/very-high-memory-usage-in-net-4-0/34184809#34184809[^]
You should have a look to these...
Very High Memory Usage in .NET 4.0[^]
ReportViewer 10 Memory Leak [^]
MS Report Viewer Memory Leak - Any Update / Fix? (WinForms Application)[^]
report-viewer-has-memory-leak-in-local-report-mode[^]
ms-report-viewer-memory-leak-any-update-fix-winforms-application[^]
ms-report-viewer-memory-leak-any-update-fix-winforms-application-again[^]
check the links and go through the discussions..hope u will get something out of it..
这篇关于如何修复Microsoft Report(rdlc)中的内存泄漏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文