解决方案 »

  1.   

    可以注释EDIT功能来看是否它引起的
      

  2.   

    只能将怀疑的地方逐步排查了。或者降低EDIT的使用看看效果
      

  3.   

    用windbg的UMDH看看哪里泄露吧。
      

  4.   

    用vld查一下吧,用起来很简单.
    http://download.csdn.net/detail/lostspeed/5013106明显是内存漏的厉害.
    开始vsIDE跑一会,然后正常退出程序,看看IDE中的泄露指示~////////////////////////////////////////////////////////////////////////////////////////////////////
    超好用的内存泄漏检查工具, 程序在Debug模式下跑一遍.退出时,就能看到具体的内存泄漏发生在哪行.current v2.2.3date Wed Feb 15, 2012 at 8:00 AMstatus StableVisual Leak Detector is a free, robust, open-source memory leak detection system for Visual C++.It's pretty easy to use. After installing it, you just need to tell Visual C++ where to find the included header and library file.Then it can be used with any C/C++ project simply by adding the following line to your code:#include <vld.h>When you run your program under the Visual Studio debugger, Visual Leak Detector will output a memory leak report at the end of your debugging session. The leak report includes the full call stack showing how any leaked memory blocks were allocated. Double-click on a line in the call stack to jump to that file and line in the editor window.It's a very effective way to quickly diagnose, and fix, memory leaks in C/C++ applications.The main difference between the CRT Debug Library and VLD, is that Visual Leak Detector shows you the complete callstack used for memory allocation has led to the leak.
      

  5.   

    版主您好,我已经注释掉EDIT了 可还是一样,进程显示占用正常,但关掉程序以后右下角的物理内存大幅下降
      

  6.   

    应该是你new了什么字符串之类的对象,忘记delete了。