bernhard_LA 0 Posted September 8, 2020 (edited) 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 September 8, 2020 by bernhard_LA Share this post Link to post
Stefan Glienke 2009 Posted September 8, 2020 https://bitbucket.org/shadow_cs/delphi-leakcheck/src/master/ scroll down to "DUnitX integration" 1 Share this post Link to post
bernhard_LA 0 Posted September 9, 2020 (edited) 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 ..... Edited September 9, 2020 by bernhard_LA Share this post Link to post
bernhard_LA 0 Posted September 10, 2020 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
Stefan Glienke 2009 Posted September 10, 2020 Take a look at the screenshot you posted yourself... Share this post Link to post