Thanks for the quick reply! I gave you the benefit of the doubt,
thinking text in tables might have the same goofy behavior as fields.
That is, field handles are automatically deallocated when the forms are
closed unless one uses FldSetTextHandle (fld, NULL).
I was confused about the 1 byte allocation. I didn't realize the size
of the text field is dynamic. I assume the table manager will grow and
shrink the memory allocation as needed?
In the table I'm writing, I use single-line and fixed width text fields.
In that case, I'm allocating all the memory I need up front instead of
just 1 byte.
Michael Yam
Y Technology, Inc.
http://www.ytechnology.com
[EMAIL PROTECTED]
-----Original Message-----
From: Neil Rhodes <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, September 23, 1999 8:07 PM
Subject: Re: Tables: freeing text table items
The handles aren't freed anywhere; I think you're right, there's a
memory
leak.
As far as the 1 byte, we needed a handle for every cell and it isn't
possible to allocate a zero-length handle. Therefore, we allocated a
1-length handle and put in a zero for null-termination.