F
Fred
Hi,
I came across code which stores class pointers in an array.
I have simplified it below. When I run the code I get a memory leak reported
in VC6.
Any idea why and is it something to worry about or just an artifact of the
debugger?
class CTest
{
};
void main(void)
{
CTest *TData = new CTest[4];
_CrtDumpMemoryLeaks();
}
I came across code which stores class pointers in an array.
I have simplified it below. When I run the code I get a memory leak reported
in VC6.
Any idea why and is it something to worry about or just an artifact of the
debugger?
class CTest
{
};
void main(void)
{
CTest *TData = new CTest[4];
_CrtDumpMemoryLeaks();
}