Symptom
- Using the SubreportController.ImportSubreport and SubreportController.ImportSubreportEx methods of the Report Application server
- When adding a report as a subreport using the SDK a memory leak is apprent
- The leak is more obvious when the report added has many objects
- A blank/empty report does not leak as much
Environment
- Crystal Reports 2008
- Visual Studio .NET 2008
- Crystal Reports for Visual Studio 2010
- Visual Studio 2010
Reproducing the Issue
- Create a VS .NET application using the RAS SDK
- Add code that uses SubreportController.ImportSubreport and / or ImportSubreportEx methods
- Code in a loop through that runs the above a 100 times
- Launch Process Explorer
- Launch the just created application
- Monitor the memory in Process Explorer
Resolution
- The issue is resolved in Service Pack 2 for Crystal Reports for Visual Studio 2010
- The issue is resolved in Service Pack 4 for Crystal Reports 2008
- Reference: ADAPT01581445
Keywords
CR2010 2010 CR4VS2010 CR4VS VS2010 NET2010 Crystal Reports for .NET Framework 4.0 crforvs 13 cr2008 2008 12 mem InProc , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , Problem
Product
Crystal Reports 2008 V1 ; SAP Crystal Reports, developer version for Microsoft Visual Studio