Yes, the memory is freed each run.

"Guy Duplantier, AEC Software" wrote:

> If you are using memhandlenew to allocate your memory, then the OS should
> handle fragmentation. The dynamic heap is reset when your application
> exits, so that explains why your app gets reset to 20 ticks. Are you
> freeing the memory in each run?
>
> At 12:04 PM 8/31/00 -0700, you wrote:
> >Hi All,
> >
> >Sorry for sending this again, there was an error in the subject,
> >
> >I have the following problem, i am developing an application that make
> >haeavy use of  dynamic memory.  I test the program
> >performance with fixed input data, and found out that the time it takes
> >increases gradually.
> >
> >   say it takes, 20 time ticks in first run,
> >   it takes 22 time ticks, in second run, ...
> >
> >
> >   till it takes 180 time ticks in 70 run.
> >
> >when i switch to another application, and return to my application the
> >time returns to
> >its 20 time ticks start.
> >
> >
> >   I think the problem has something to do with memory fragmentation, or
> > the use of  Palm OS float library. however, if the problem
> >is memory fragmentation, then why the increase in time doesn't stop?  and
> >why the system return to its normal  behaviour when I quit
> >my application and return back to it. Can I duplicate what
> >the system does, to get the performance back?
> >
> >I think that understanding what is happening is the first step to solving
> >the problem, so I appreciate any suggestions or
> >explanations to what is happening.
> >
> >Thanks in advance.
> >
> >Mahmoud
> >
> >
> >--
> >For information on using the Palm Developer Forums, or to unsubscribe,
> >please see http://www.palmos.com/dev/tech/support/forums/
>
> _________________________________________________________
>
> Guy Duplantier                          Email: [EMAIL PROTECTED]
> Software Developer                      Phone: 703.450.1980
> AEC Software, Inc.                      Fax: 703.450.9786
> _________________________________________________________
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe, please see 
>http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to