Skip to Content
0
Former Member
Nov 14, 2011 at 11:50 AM

Handle leak - Crystal for VS 2010

42 Views

I've been playing with the Crystal VS2010 runtime and have come across a problem which I believe might be a handle-leak in Crystal Reports.

I can reproduce this at will using the following example:

I created a project with a typed dataset (containing 2 empty tables with only a single column each). I then added a blank report to the project and only added a single text object to it - no data is loaded from the dataset at all.

Then, I can execute the following 100 times in a loop:

using (DataSet1 dataSet = new DataSet1())
{
   using (CrystalReport1 report = new CrystalReport1())
   {
      report.SetDataSource(dataSet);
      report.Close();
   }
   dataSet.Clear();
}

This I then follow with a forced garbage collect, just to make sure everything was cleaned up properly. However, +- 100 new handles were opened and using sysinternals' handle.exe, these show up as Mutexes e.g.:

1324: Mutant \Sessions\1\BaseNamedObjects\CrystalReportXalanInitilizeMutex2916l

I haven't been able to find any information about this on the forums or the internet - can anyone confirm if this is a known issue? (Or am I doing something stupid? 😊)

Thanks!