我有以下例子说明这个问题: program FalseMemLeak;
uses
ShareMem;
var
o: TObject;
begin
o := TObject.Create; // "good" leak
RegisterExpectedMemoryLeak(o);
TInterfacedObject.Create; // b
当我从IDE运行它时,我的应用报告退出时出现此错误。对于在程序运行时创建的线程的每个实例,我通常会得到一个FastMM障碍,但它不足以描述此行为。问题是我无法理解报告。 ---------------------------
APP.exe: Memory Error Detected
---------------------------
FastMM has detected an er
我正在寻找一些memoryleaks,并且我在FullDebugMode中使用FastMM来获取事件日志。这工作相当好,但堆栈跟踪...不是很好。 简单例子: This block was allocated by thread 0x25F8, and the stack trace (return addresses) at the time was:
4081E8 [FastMM4.pas]