lazarus 检测内存泄漏

用法:不要手工添加heaptrc单元,应该在编译选项中勾选

Using heaptrc in Lazarus

To enable this in your Lazarus project:

  1. Go to Project Options/Linking and
  2. in the Debugging section enable Use Heaptrc unit (check for mem-leaks) (-gh)

详见:https://wiki.freepascal.org/heaptrc

原文地址:https://www.cnblogs.com/Jiaojiawang/p/14332643.html