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? "Victor ." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear developers: > > I was wondering if there is a way to remove the > content of a table because > after displaying table I have memory leaks. The > scenario: I load the content > of each displayable row from database records (using > callback function) and > also I provide saving callback function. However after > I load the content I > had memory leaks as large as the content of the > database records that I > have, e.g. if I load 10 records to 10 rows, I have 10 > memory leaks. I have tried to troubleshoot by > selecting the field in a row then release the > handle/pointer associated that field when the form is > closed by calling TblGetCurrentField. However, when I > get TblGetItemPtr passing the current field, I receive > NULL, thus my effort was useless. Many thanks for your > help. > > Victor > > > > __________________________________________________ > 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/
