amr elalamy wrote: > Hi all, > > I need an efficient method or tool to get a very small memory leak in huge > c++ engine written using Visual studio 2005. > > Thanks in advance .
Define "huge". To me, "huge" means at least a _million_ lines of code. If you had written everything using Safe C++, you wouldn't have to hunt for memory leaks because, well, there wouldn't be any. new and delete do not belong at the application layer. That being said, there are all sorts of tools out there for hunting down memory leaks. Visual Leak Detector (VLD) is, IMO, the best freebie heap-based leak detector. There are other tools such as Numega BoundsChecker that are "okay" but performance sort of drops out of existence. You really shouldn't be picky. You should only have to build and run two times with a halfway decent tool to pinpoint heap-based leaks. The first time finds the leak, the second time is to verify that the leak is gone. After that you can compile and run normally. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
