working on it ...


Explore Public Snippets

Sort by

Found 1 snippet matching: madexcept

    external by StackOverflow modified Jun 16, 2017  1  0  2  0

    "ReportMemoryLeaksOnShutdown" not working in Delphi 10.2 Tokyo?

    It seems that setting ReportMemoryLeaksOnShutdown := true does not have any effect in programs created with Delphi 10.2 Tokyo (I tried it with Windows and Linux programs). Even if there are obvious memory leaks, nothing gets reported. Can someone confirm this? And is there an alternative way to check for memory leaks in Linux programs? On Windows
    If you run the console application from cmd window it will show the appropriate message about the memory leak.
    The behavior of the memory leak report changed and the MessageBox is displayed for windowed applications, while console applications get the message in console.
    In Delphi XE2 there was single MessageBoxA in ScanForMemoryLeaks procedure.
    In Delphi 10.2 there is custom procedure ShowMessage(AMessage, ATitle: _PAnsiChr); which calls alternatively WriteConsoleFile or MessageBoxA.
    So it is designed, not the bug (IMHO).
    Compare the discussion: Reporting memory leaks on shutdown with a console application

    List Complete ( 1 snippet total )

    Cannot find what you were looking for?
    Ask the Snip2Code Community

    • Public Snippets
    • Channels Snippets