RVReportDxMemDataProvider - Memory leak

ReportWorkshop support and discussion (TRichView reporting add-on)
Post Reply
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

RVReportDxMemDataProvider - Memory leak

Post by Ceprotec »

Attached is the madExcept leak report (I changed the default extension "mbr" to "txt").
Attachments
memory_leak.txt
(102.38 KiB) Downloaded 566 times
Sergey Tkachenko
Site Admin
Posts: 17291
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: RVReportDxMemDataProvider - Memory leak

Post by Sergey Tkachenko »

I confirm the bug.

Quick fix: open RVReportMemDataProvider.pas, delete lines 94..97:

Code: Select all

  Result := TRVReportDBQueryProcessor.Create(DataSet,
    LDestroyAfterUse, LUseRecordCount);
  TRVReportDBQueryProcessor(Result).FSupportsRecordCountByDefault :=
    SupportsRecordCountByDefault;
This fix will be included in the next update.
Ceprotec
Posts: 259
Joined: Thu Oct 28, 2010 6:09 pm
Contact:

Re: RVReportDxMemDataProvider - Memory leak

Post by Ceprotec »

Solved, thank you.
Post Reply