Ignore:
Timestamp:
Apr 17, 2019, 12:58:41 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Propagate project build mode options to used packages.
  • Added: Check memory leaks using heaptrc.
  • Modified: Update BGRABitmap package.
Location:
GraphicTest
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GraphicTest

    • Property svn:ignore
      •  

        old new  
        88GraphicTest.lps
        99GraphicTest.dbg
         10heaptrclog.trc
  • GraphicTest/GraphicTest.lpr

    r494 r521  
    88  {$ENDIF}{$ENDIF}
    99  Interfaces, // this includes the LCL widgetset
    10   Forms, openglcontext, UMainForm, UPlatform, UDrawMethod, UFastBitmap,
     10  Forms, SysUtils, openglcontext, UMainForm, UPlatform, UDrawMethod, UFastBitmap,
    1111  UDrawForm, bgrabitmappack,
    1212  {$IFDEF GRAPHICS32}GR32_L,{$ENDIF}
     
    1818{$R *.res}
    1919
     20{$if declared(UseHeapTrace)}
     21const
     22  HeapTraceLog = 'heaptrclog.trc';
     23{$ENDIF}
     24
    2025begin
     26  {$if declared(UseHeapTrace)}
     27  // Heap trace
     28  DeleteFile(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
     29  SetHeapTraceOutput(ExtractFilePath(ParamStr(0)) + HeapTraceLog);
     30  {$ENDIF}
     31
    2132  RequireDerivedFormResource := True;
    2233  Application.Initialize;
Note: See TracChangeset for help on using the changeset viewer.