> Going through Rhodes & Mckeehan's chapter on tables, I noticed that the
> examples allocated memory for text table items (p 214):
>
> gHandles[i][j] = MemHandleNew(1);
>
> But I couldn't find where the memory was freed. Is it because handles
> to text table items are automatically freed when the form is closed?
> Also, can anyone shed some light on why only 1 byte was allocated?
>
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.
> Thanks,
> Michael Yam
> Y Technology, Inc.
> http://www.ytechnology.com
> [EMAIL PROTECTED]
>
>
>
>
--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA 92374
(909) 793-5995 [EMAIL PROTECTED] fax: (909) 793-2545