Ben,
Thanks for the bug report...
At 12:00am -0700 00-07-13, Palm Developer Forum digest wrote:
>Subject: Doc bug on FldSetTextPtr
>From: "Ben Combee" <[EMAIL PROTECTED]>
>Date: Wed, 12 Jul 2000 14:08:11 -0400
>X-Message-Number: 59
>
>The 3.5 SDK docs for FldSetTextPtr indicate that you should call
>
> FldSetTextPtr(fld, NULL)
>
>before deleting the contents of the field. However, this causes an emulator
>crash (at least in the 3.2 debug ROM) due to FldSetTextPtr calling StrLen on
>the passed-in string pointer. Is this usage supposed to be supported, or
>were the docs wrong?
It's not clear who's at fault here, since the code _should_ handle
being passed a NULL pointer. But passing NULL does indeed trigger the
problem you report, so what the documentation should say is to call
FldSetTextHandle(fldP, NULL). This sets the field text pointer to
NULL in a safe manner.
I'll pass this note along to the documentation group.
-- Ken
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/