[Cppunit-devel] Having a memory leak problem
Brought to you by:
blep
From: Doug S. <do...@hu...> - 2002-05-04 19:30:19
|
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 |