zoukankan      html  css  js  c++  java
  • D7下FastMM的使用

    原文出处:http://hi.baidu.com/showwindows/blog/item/5b7ac601c487c605728da573.html

    FastMM 快速MM:-),在D2006和2007中已代替了原来的内存管理器。
    D7也可以使用,而且很方便哦。请看步骤:
    1. FastMM是开源项目,去她老家先拖个来. http://sourceforge.NET/projects/fastmm
    2.文件夹Replacement BorlndMM DLL/Precompiled/for Delphi IDE/Performance/BorlndMM.dll,
    替换掉Delphi/Bin下的相应文件就可以完成对IDE的提速
    3.Enviroment->Library->Directories添加FassMM路径
    4.在你的项目文件中,Project->View Source打开后,uses 后第一个添加FastMM4
    5.All done!运行程序,如果有Memory leak,在关闭程序时会有一个提示对话框.

    对话框也是可以关闭的
    打开FastMM4Options.inc文件。在文件的末尾添加如下代码:
    {$define Release}
    {$ifdef Release}
    {Specify the options you use for release versions below}
    {$undef FullDebugMode}
    {$undef CheckHeapForCorruption}
    {$define ASMVersion}
    {$undef EnableMemoryLeakReporting}
    {$undef UseOutputDebugString}
    {$undef LogErrorsToFile}
    {$undef LogMemoryLeakDetailToFile}
    {$else}
    {Specify the options you use for debugging below}
    {$define FullDebugMode}
    {$define EnableMemoryLeakReporting}
    {$define UseOutputDebugString}{$endif}

    重新打开把上面第一行条件编译定义选项{$define Release} 注释掉就可以了
    如 //{$define Release} 
    即可

    http://blog.csdn.net/tjb_1216/article/details/4635946

  • 相关阅读:
    查看表中bytea类型的字段内容
    Js中生成32位随机id
    VS Code操作指南
    记录一次非常简单的Win10安装
    Typora中下载并安装主题
    Win 10下隐藏任务栏图标B & O Play Audio Control
    IDEA基本使用
    Eclipse中安装反编译器(中文版)
    Eclipse设置控制台不自动弹出
    解决Eclipse控制台中文乱码的情况
  • 原文地址:https://www.cnblogs.com/findumars/p/6329697.html
Copyright © 2011-2022 走看看