无论如何,我想知道FastMM中是否有内存泄漏?
更新:我不会亲自使用Win API来分配内存。但我恐怕我使用的第三方组件(不是很多)可能会使用它。可以让我知道FastMM无法拦截的所有可能的API调用?我会在我的代码中搜索他们。谢谢。
Delphi 7,Win 7 32位 FastMM 4.97 我对接口不感兴趣。
解决方案不,只有内存泄漏,哪个内存被FastMM分配。
编辑: 也许答案看起来是包装但不是!如果有人检查 FastMM haw是否可以看到每个内存分配指针被推送(并在FreeMem中弹出)到一个堆栈(有更多的堆栈,依赖于内存大小)所以在关闭应用程序结束时,FastMM只检查堆栈,如果堆栈中有东西,如果是,则报告内存泄漏!
Somebody suggested recently ( My program never releases the memory back. Why? ) that my program leaks some memory. I have FastMM set to aggressive and it reports no memory leaks when I shutdown the program.
Anyway, I would like to know if there can be memory leaks that are no detected by FastMM?
Update: I don't personally use Win API to allocate memory. But I am afraid that some 3rd party components I use (not so many) may use it. Can you let me know all possible API calls that FastMM cannot intercept? I will do a search in my code for them. Thanks.
Delphi 7, Win 7 32 bit FastMM 4.97 I am not interested about interfaces.
解决方案No, only memory leaks which memory was alocated by FastMM.
EDIT: Maybe the answer looks wrapped but it is not! If anyone check the FastMM haw is made than can see that every pointer of memory alocation is pushed (and poped out at FreeMem) in to one of stacks (there is more stacks, depend of memory size) so at the end of closing application the FastMM only check stacks, if something in stacks, and if it is, than report memory leak!
更多推荐
FastMM是否检测到所有内存泄漏
发布评论