SAP Knowledge Base Article - Public

1670501 - Memory leak when using the RAS.NET SDK SubreportController.ImportSubreport and ImportSubreportEx methods


  • 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


  • Crystal Reports 2008
  • Visual Studio .NET 2008


  • Crystal Reports for Visual Studio 2010
  • Visual Studio 2010

Reproducing the Issue

  1. Create a VS .NET application using the RAS SDK
  2. Add code that uses SubreportController.ImportSubreport and / or ImportSubreportEx methods
  3. Code in a loop through that runs the above a 100 times
  4. Launch Process Explorer
  5. Launch the just created application
  6. Monitor the memory in Process Explorer


  • 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


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


Crystal Reports 2008 V1 ; SAP Crystal Reports, developer version for Microsoft Visual Studio