<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 8, 2016 at 4:02 AM, Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com" target="_blank">pascaldragon@googlemail.com</a>></span> wrote:</div><div class="gmail_quote">[...]<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<p>*Always* put an alternate memory manager as the first unit. I think that requirement is even documented somewhere...<br></p></blockquote><div>Thanks for share this information. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><p>
Also don't use -gh with alternate memory managers. They are *both* memory managers and thus will lead to conflicting situations.</p></blockquote><div>Hmmmm... I didn't know about this conflicting, thanks again! :-)</div><div><br></div><div>Is there some way to report possible memory leaks when my memory manager is the cmem?</div><div><br></div><div>Now I omitted the -gh and declared the units as:</div><div><br></div><div>=== code ===</div><div><br></div><div><div>uses</div><div>  cmem, Classes, SysUtils; </div></div><div><br></div><div>=== /code ===<br></div><div><br></div><div>And the problem was:</div><div><br></div><div>=== error ===</div><div><br></div><div><div>C:\Users\silvioprog\Desktop\av>project1.exe</div><div>An unhandled exception occurred at $0040B8E2:</div><div>EAccessViolation: Access violation</div><div>  $0040B8E2</div></div><div><br></div><div>=== /error ===</div><div><br></div></div><div class="gmail_signature"><div dir="ltr"><div>--</div><div>Silvio Clécio</div></div></div>
</div></div>