My proposal is: try to avoid so frequent MemPtrNew/MemPtrFree calls, as
they will fragment the memory and it's possible to have memory leaks and so
on. Try to allocate a big work buffer at startup, which size is the maximum
size your temporary data will be, and work all within that buffer. By using
this, heap will not be fragmented and you'll have no memory leak.

Dan Patrutiu



"iyad abu-shaera" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Am doing a project that contains about 50 forms, and it is a data-driven
> project. Also there is many rules that will validate the data that entered
> by the user.. Am afraid from the memory leak.. so if there is a way to
> refresh the memory to remove the fragments and any unused memory chunks.
> I don't want the user to go out of the application, so the application may
> run about 10 days continuously.
> I follow the palm recommendations for the memory management. But also on
the
> first test phase sometime the application reset cause of the memory leak..
> Also if there is a way that I can stop and remove every thing from the
> memory and return back, for me it is ok..
> Any idea regarding this issue will be appreciated.
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>
>



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

Reply via email to