Re: [Cppunit-devel] Having a memory leak problem
Brought to you by:
blep
From: Baptiste L. <gai...@fr...> - 2002-05-07 21:43:57
|
Would you mind sending me your test programm (how do you detect the leaks ?). I have a good idea on how to chase it. Thanks in advance, Baptiste. ----- Original Message ----- From: "Doug Sauder" <do...@hu...> To: <cpp...@li...> Sent: Saturday, May 04, 2002 9:29 PM Subject: [Cppunit-devel] Having a memory leak problem > Hi, developers! > > First of all, cppunit is a wonderful tool. I very big "thank you" to all > who have worked to develop it! > > I am using CPPUNIT_ASSERT() in a loop that executes 256**3 times. I am > seeing a memory leak that happens only when I use CPPUNIT_ASSERT() -- I > don't see the memory leak when I use the assert() macro from the standard C > library. The evaluation of the boolean expressions don't create any > objects, nor do they allocate any memory. (At first, I thought that the > expressions weren't being evaluated with the assert() macro because of > NDEBUG, so I verified that they were evaulated.) The memory leak consumes > a lot of memory because of the number of assertions that are evaluated, > making the CCPUNIT_ASSERT() macro unusable. > > I use Visual C++ 6 and version 1.8.0 of cppunit. I used the included > project file to build it (no changes), and I'm using cppunit.lib. I use > the TextUi. > > I spent some time looking at the cppunit source code, but I couldn't find > anything that looked like a memory leak. The assert condition never fails, > so (I believe that implies) the exception isn't being thrown. > > Does anyone have any idea where there might be a memory leak? > > I can also try to run the same code on Solaris with Forte C++ and GCC and > on Linux with GCC. That could help to verify if this is just a Visual C++ > problem. > > > ------------------------------------------- > Doug Sauder > Software Architect > Hunny Software, Inc > Email: do...@hu... > Phone: 301-948-6999 > > > _______________________________________________________________ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: ban...@so... > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel > |