>> I have a program that creates memory handles for modifying text fields.
>> ... Do I then need to do a MemHandleFree?
> If you're using FldSetTextHandle() you must not release the memory!
> See API Docs under FldSetTextHandle() for more details.
Fields manage their own memory including cleanup on form closing. But fields do NOT
clean up old memory if you're putting in new memory. You have to get the old memory
before putting in the new, and then clean up the old memory after.
In other words:
Get old memory using FldGetTextHandle
Set new memory using FldSetTextHandle
Free old memory with MemHandleFree
This assumes old memory != new memory.
For a MUCH better explanation, see page 117 of the Rhodes/McKeehan Palm Programming
book from O'Reilly.
--------------------------------------------------
David Tribble, INRI Hawaii
(808) 625 2118 (v) (808) 625 6315 (f)