Jump to content
Sign in to follow this  
bernhard_LA

DUNIT X memory leak checking

Recommended Posts

I must convert a dunit  project  to a dunixX  project,  the following code does not compile any longer , 

how to include dunit leak checks  into dunitX ? 

 

procedure TestClass_MemoryLeaks.Test_..........h;
begin 
  try
    G := TGraph<Char>.Create(normal_directed);
    GraphTestData(G);
    G.AddEdge......
  finally
    G.Free;
    self.CheckTrue(not(self.GetFailsOnMemoryLeak),
      'Failed on memory leak when Adding Repeated Edge on Directed Graph');
  end;
end;

 

Edited by bernhard_LA

Share this post


Link to post

thanks  for this  hint,    in addition  I found :  https://medium.com/@Zawuza/delphi-leakcheck-2242270ef42d

 

 

My dunitX installation  does not come   with  a  file   DUnitX.MemoryLeakMonitor.LeakCheck  ,  you need  to copy from https://bitbucket.org/shadow_cs/delphi-leakcheck/src/master/External/DUnitX/

to this  folder ..... 

 

 

 

DUNITX.thumb.JPG.252ba14596ede542c3cf8cd13af0da33.JPG

 

 

 

Edited by bernhard_LA

Share this post


Link to post

open question  :   

 

unit DUnitX.MemoryLeakMonitor.LeakCheck does not compile, because , of missimg  include  file  

 

{$I DUnitX.inc}

 

where  to get this file ? 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×