How to use Boundschecker to detect such case memory leakage?

How to use Boundschecker to detect such case memory leakage?

Post by logg » Sun, 16 Nov 2003 20:54:37


Memory.cpp

LPVOID MyNew(UINT nMemSize)
{
LPVOID pMem = (LPVOID)new BYTE[nMemSize];
return pMem;
}

void MyDelete(LPVOID pMem)
{
delete[] pMem;
pMem = NULL;
}

Example.cpp

void TestFun()
{
char* pchName = NULL;
pchName = (char*)MyNew(100);
....
//the MyDelete() function is not called;
}


loggy
 
 
 

How to use Boundschecker to detect such case memory leakage?

Post by Jochen Kal » Sun, 16 Nov 2003 22:22:31

You can also use the freeware memory leak finder:

http://www.yqcomputer.com/



--
Greetings
Jochen

Do you need a memory-leak finder ?
http://www.yqcomputer.com/

 
 
 

How to use Boundschecker to detect such case memory leakage?

Post by logg » Tue, 18 Nov 2003 12:49:07


Thank you very much!
I will check the leakfinder for the memory leakage tool;

"Jochen Kalmbach" < XXXX@XXXXX.COM >
: XXXX@XXXXX.COM ...