开发者

FastMM log to file without FullDebugMode

开发者 https://www.devze.com 2022-12-25 21:07 出处:网络
I\'d like to get FastMM memory leak report that shows up on app shutdown, but in a file instead of the dialog box. The idea is 开发者_开发技巧to use it in a release build as I have trouble reproducing

I'd like to get FastMM memory leak report that shows up on app shutdown, but in a file instead of the dialog box. The idea is 开发者_开发技巧to use it in a release build as I have trouble reproducing the leaks. I would however prefer to not use the FullDebugMode which seems to be required for logging to a file.

Am I missing anything or is this not supported ?


From FastMM4.pas:

  {Error logging requires FullDebugMode}
  {$undef LogErrorsToFile}

So, yes logging to a file is only available in FullDebugMode as the intent was to get the details of the leaks, not the summary only which you get normally in the MessageBox.

You have to modify yourself FastMM4.pas to allow logging of the summary to a file when the NoMessageBoxes option is set.

Another option you might want to look at is the UseOutputDebugString. It allows to send the FastMM messages to a DebugView Window. (DbgView from SysInternals for instance)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号