Does FastMM detect all memory leaks

前端 未结 6 1289
太阳男子
太阳男子 2021-01-03 07:37

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 l

6条回答
  •  长情又很酷
    2021-01-03 07:56

    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!

提交回复
热议问题