My program never releases the memory back. Why?

前端 未结 5 526
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 14:41

I have a MDI program. When It starts it takes 2-3MB of RAM. Then, in this program I create about 260 MDI child windows (each has a TStringGrid, a bitmap and some other contr

5条回答
  •  暖寄归人
    2020-11-30 15:11

    The main limitation of FastMM's memory leak tracing is that it can only run when you shut down the program. It could be that you're still holding references to objects or other data that gets cleaned up when you shut down the program, but stays around until then.

    For example, when you close the MDI child windows, do you call Free or Release on them, or just make them disappear? If they're hidden but not freed, they'll still be in memory.

提交回复
热议问题