The code looks very wrong.
The sequence:
CustomerHandles = MemHandleNew(numBytes);
handles[row] = MemHandleLock(CustomerHandles);
handles[row] = MemHandleNew(StrLen(myString)+1);
makes no sense. The 3rd line wipes out the locked pointer to
CustomerHandles created in the 2nd line. So CustomerHandles is not
really being used. The new memory you allocate with the 3rd line is
never freed.
Since you turn off the editable and underlined attributes, I'm guessing
this is a display-only field. Why don't you use a customTableItem for
this column? That way there is no need to dynamically allocate anything.
You just use WinDrawChars to display your "catName" string table
entries.
Hope that helps...
Dave
============================================================
Hi
I have a table with 7 rows and 2 columns. In all rows of the first
column i copy data that is stored in a string.
I have to use a handle pointer that i resize during runtime. But I'm
unable to free it with MemHandleFree.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/