Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Memory Leak

edited November 2003 in General

Hi,

We use MemCheck program in our application to check for memory leaks, which
we found very useful and did eliminated a lot of memory leaks in our
program.

We just noticed that some of the memory leaks it's coming up with is to do
with some of RB6 classes. Below is an example of one of the memory leak
which has been reported by MemCheck.



Do you test your source code for memory leaks?



Leak #1 Instance of TList

Size: 16

191 Occurences

call stack - 0 : Module daMetaData.pas Routine
@Dametadata@TdaMetaTable@Create Line 1061 Find error: 0094F2F7

call stack - 1 : Module daMetaData.pas Routine
@Dametadata@TdaMetaData@GetTableNamesFromSession Line 543 Find error:
0094E81E

call stack - 2 : Module daQueryWizard.pas Routine
@Daquerywizard@TdaQueryWizard@Execute Line 643 Find error: 00D192CA

call stack - 3 : Module daDataWizardManager.pas Routine
@Dadatawizardmanager@TdaDataWizardManager@NewDataView Line 214 Find error:
00D0BE07

call stack - 4 : Module daDataManager.pas Routine
@Dadatamanager@TdaDataManager@NewDataView Line 1051 Find error: 00D0D52E

call stack - 5 : Routine @Controls@TWinControl@WndProc Find
error: 004607D0

call stack - 6 : Routine @Controls@TWinControl@MainWndProc Find
error: 0046044B

call stack - 7 : Routine @Classes@StdWndProc Find error:
0042D3FA

call stack - 8 : (no debug info) Find error: 77D43A64

call stack - 9 : (no debug info) Find error: 77D43B33

call stack - 10 : (no debug info) Find error: 77D43D8D

call stack - 11 : (no debug info) Find error: 77D44388

call stack - 12 : Module ppEndUsr.pas Routine
@Ppendusr@TppDesigner@ShowModal Line 1067 Find error: 009BCBFF

call stack - 13 : Module RTReportDesigner.pas Routine
@Rtreportdesigner@TfmReportDesigner@dxBtnNewClick Line 212 Find error:
00D6DAA9

call stack - 14 : Module dxBar.pas Routine
@Dxbar@TdxBarItem@DoClick Line 19860 Find error: 0061698C

call stack - 15 : Module dxBar.pas Routine
@Dxbar@TdxBarItemControl@ControlUnclick Line 21216 Find error: 006191D5

call stack - 16 : Module dxBar.pas Routine
@Dxbar@TdxBarButtonControl@ControlUnclick Line 22363 Find error: 0061B69C

Regrads

NB

Comments

  • edited November 2003

    Yes, we check RB for memory leaks.

    ReportBuilder consists of hundreds of classes and thousands of methods. To
    detect a leak you must exercise the specific line of code. Thus, some leaks
    can go undetected in our testing.

    If you find leaks, please report them to support@digital-metaphors.com.





    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.