These memory leaks are giving me headaches. I cannot find them for the life of me.
Dumping objects ->
{1878} normal block at 0x00DD2C98, 4 bytes long.
Data: < > A0 8E DE 00
{1875} normal block at 0x00DE8E48, 24 bytes long.
Data: < |C , > A8 7C 43 00 00 00 00 00 CD CD CD CD 98 2C DD 00
Object dump complete.
No source file is given, just the memory address. Any way to determine where these are coming from. Perhaps I can find these by using the debugger?
My design philosophy for all classes now is that each one has a destroy function. I was at one time relying on destructors to do cleanup but this was causing a lot of problems. Now I simply call destroy for every object and I'm ensured that every object is cleaned up.
Code:
class A
{
B* BObj;
C* CObj;
public:
...
void Destroy(void);
};
A::Destroy(void)
{
BObj->Destroy();
CObj->Destroy();
delete BObj;
delete CObj;
}
Like that.
This has really cut down on a lot of memory leaks. But I need help with the two I mentioned above. One looks like a pointer, but I'm not sure.