Changeset 78 for trunk/LazFuck.lpr


Ignore:
Timestamp:
Jan 1, 2017, 12:59:53 AM (7 years ago)
Author:
chronos
Message:
  • Modified: Show only really used memory.
  • Added: Check memory leaks in Debug build mode.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        55LazFuck
        66compiled
         7heaptrclog.trc
  • trunk/LazFuck.lpr

    r75 r78  
    1313  UFormOutput, UFormInput, UFormMemory, UFormMessages, UFormSourceCode,
    1414  UFormTargetCode, UFormTargetOptions, UCore, Common, TemplateGenerics,
    15   CoolTranslator, UFormLog, UProject, UBFTarget;
     15  CoolTranslator, UFormLog, UProject, UBFTarget, SysUtils;
    1616
    1717{$R *.res}
    1818
     19{$IFDEF DEBUG}
     20const
     21  HeapTraceLog = 'heaptrclog.trc';
     22{$ENDIF}
     23
     24
    1925begin
     26  {$IFDEF DEBUG}
     27  // Heap trace
     28  DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
     29  SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
     30  {$ENDIF}
     31
    2032  Application.Title := 'LazFuck IDE';
    2133  RequireDerivedFormResource := True;
Note: See TracChangeset for help on using the changeset viewer.