Code reallocation among segments shouldn't cause any memory leaks. It's just algorithm issue.
______________________________________________ Best regards, Maks Pyatkovskiy > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:bounce-palm-dev- > [EMAIL PROTECTED] On Behalf Of Nick > Sent: Tuesday, July 01, 2003 7:06 AM > To: Palm Developer Forum > Subject: Re: Memory Leaks from POL objects after adding a segment and > reordering modules. > > Maks, > > Thanks for the suggestions. I am currently comparing current the version > to > previous versions to see where I might have broken something. > > At first, instead of adding a new segment, I put some of the forms in > Segment 2 and everything was fine. However, I thought this would not be a > good idea because the POL library is here. Any reason not to do this? > > Thanks, > Nick. > > "max" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > Check your own code ;-) > > > > 1. Try to avoid using dynamically created objects, for example: > > > > A* pa = new A(); > > pa->Foo(); > > delete pa; > > > > Replace with: > > > > A a; > > a.Foo(); > > > > 2. Use smart pointers (CAutoPtr and CSmartPtr) if it's difficult to > > track objects lifetime. > > > > ______________________________________________ > > > > Best regards, > > Maks Pyatkovskiy > > > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
