Thanks, Matthew. I found that it was the problem of allocating a new buffer everytime I call the "load" callback function. I just remember what I read few weeks back that in table control there is only 1 active field at a time so I just put a global variable to keep track the current field and deallocate the handle when I exit the application. It seems to work perfectly. Thanks a lot for your help and reminder. I really appreciate it. :-)
Best Regards, Victor ------------------------------------------------ Subject: Re: Problem Freeing table's content (memory leaks) From: "Matthew Henry" <[EMAIL PROTECTED]> Date: Mon, 29 Dec 2003 11:55:17 -0500 X-Message-Number: 27 I can only state the obvious, which is you ain't doin' something right. ;-) In my LoadData() callback for example, I have a single buffer I keep around and I fill that with the text I'm going to display. Every time my LoadData() is called I resize that buffer if necessary and load the text for the current item into it. Sounds like you are allocating a new buffer every time and not freeing it. Might be time to refresh your memory on how tables work by rereading the relevant bits in the Palm OS Bible? __________________________________________________ Do You Yahoo!? Get clicking with thousands of local 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/
