Skip to Content
May 27, 2020 at 10:00 AM

.NET (C#) Crystal Reports Collection was Modified on retrieval of ReportDefinition *Area

108 Views Last edit May 29, 2020 at 07:44 PM 2 rev

Running CR on Windows 10 X64 1909 with all the latest patches, but this one has been around for a long time.

We occasionally get an exception, it appears that there is a missing lock/semaphore statement somewhere within the "DisposeHashTableValues" function.

at CrystalDecisions.CrystalReports.Engine.ReportDocument.get_ReportClientDocument()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ClearCache(Boolean clearDocument)
at CrystalDecisions.CrystalReports.Engine.EngineObjectFactory.Dispose()
at CrystalDecisions.CrystalReports.Engine.EngineObjectFactory.DisposeHashTableValues(Hashtable table)
at System.Collections.Hashtable.HashtableEnumerator.MoveNext()

This happens when we try to do something like "area = report.ReportClientDocument.ReportDefController.ReportDefinition.DetailArea"