title: Delphi 7, DUnit and FastMM reporting Strings incorrectly
body: <p>I'm using DUnit and FastMM to catch unfinalized memory blocks but there seems to be a Bug. I dunno if its in FastMM, DUnit or in Delphi itself, but here goes:</p>
  
  <ul>
  <li><p>When my Test Case has internal strings, the test fails with memory leaks. If I run the same test again without closing the DUnit GUI, the test passes OK. The same occours with DUnit GUI Testing, I believe for the same reason. There are no Leaks in my app, the proof is that FastMM doesn't generate the leak report in those cases.</p></li>
  <li><p>Question 1: Is there a way to ignore them without setting the AllowedMemoryLeakSize</p></li>
  <li><p>Question 2: I'm using Delphi 7, any news if this fix in Delphi XE?</p></li>
  <li><p>My actual test configuration:</p>
  
  <ul>
  <li>test.FailsOnNoChecksExecuted  := True;</li>
  <li>test.FailsOnMemoryLeak        := True;</li>
  <li>test.FailsOnMemoryRecovery    := False;</li>
  <li>test.IgnoreSetUpTearDownLeaks := True;</li>
  </ul></li>
  </ul>
  
  <p>Here's a sample code (implementation only)</p>
  
  <pre><code>    procedure TTest.Setup;
      begin
          A := 'test';
      end;
  
      procedure TTest.TearDown;
      begin
          // nothing here :)
      end;
  
      procedure TTest.Test;
      begin
          CheckTrue(True);
      end;
  </code></pre>
  
  <p>Thanks!!!! </p>
  
  <p>UPDATE: The problem i'm facing is documented in <a href="http://members.optusnet.com.au/mcnabp/Projects/HIDUnit/HIDUnit.html#memoryleakdetection" rel="nofollow">http://members.optusnet.com.au/mcnabp/Projects/HIDUnit/HIDUnit.html#memoryleakdetection</a>
  But the same link doesn't present a solution other than running the same test again.</p>