Dear Palm Developers:
I am experiencing many memory leaks when using Palm OS
Emulator to test my program. The scenario is as belows
(simplified):
class A
{
B* myB;
A::A() { myB = new B[100];}
}
class B
{
C* myC;
B::B() { myC = new C[100]; }
}
class C
{
int K;
char* L;
C::C() {......}
}
and I declare a number of class A objects in the heap
and put them as global static variables.
The problem is I can't delete class A objects even
when I do it at the end of the program eventhough I
supply destructor for each class which will delete
the inside objects accordingly. I have something like:
Invalid chunk ptr MemoryMgr.c. Could somebody tell me
how to fix this? THough it's not crashing my software
but slowly it becomes slower and slower. Thanks a lot
for your kindness and help.
Best Regards,
Vic
__________________________________________________
Do You Yahoo!?
Get clicking with thousands of singles today!
http://asia.yahoo.com/lavalife
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/