如何仅在调试模式下激活ReportMemoryLeaksOnShutdown? [英] How to activate ReportMemoryLeaksOnShutdown only in debug mode?
本文介绍了如何仅在调试模式下激活ReportMemoryLeaksOnShutdown?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要激活 ReportMemoryLeaksOnShutdown
功能来报告我的应用程序的内存泄漏,但只能在调试模式下(当Delphi IDE运行时)。我该怎么做?
I need to activate the ReportMemoryLeaksOnShutdown
functionality to report the memory leaks of my application, but only under debug mode (when the Delphi IDE is running). How can I do this?
推荐答案
尝试使用 DebugHook
变量
try using the DebugHook
variable
ReportMemoryLeaksOnShutdown:=DebugHook<>0;
这篇关于如何仅在调试模式下激活ReportMemoryLeaksOnShutdown?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文