At 12:00am -0700 00-08-05, Palm Developer Forum digest wrote:
>Subject: Re: Field.c line 132
>From: Oliver King-Smith <[EMAIL PROTECTED]>
>Date: Fri, 04 Aug 2000 16:15:53 -0700
>X-Message-Number: 73
>
>Basically this happens with several of my fields. I create the field in
>constructor, and when I try to issue a call to it ( such as
>FldSetAttributes() ) I get this error.
>
>They are on a form with a table, I don't know if this is affecting things.
>The failure happens as soon as the form loads. The function that the
>failure is happening in is called Validate. I believe it only exists in
>the debug roms. The regular roms run fine without any error messages.
1. If you need to programmatically make a field usable at run-time,
then you should be using the FldSetUsable() call.
2. FldSetAttributes should only be used as a last resort, when the
API to do what you want isn't available.
3. If you do call FldSetAttributes, then you _must_ call
FldGetAttributes first, change the flags, then immediately call
FldSetAttributes _without_ calling any other field object routines in
the middle. Calls to FldXXXX routines can change the value of the
field attributes, which would make the copy that you loaded with the
FldGetAttributes call invalid.
At 12:00am -0700 00-08-05, Palm Developer Forum digest wrote:
>Subject: RE: Field.c line 132
>From: Oliver King-Smith <[EMAIL PROTECTED]>
>Date: Fri, 04 Aug 2000 20:30:21 -0700
>X-Message-Number: 76
>
>John,
>
>When I try to do that I am still getting the same error. I found the bug
>you were talking about with the FldFreeMemory, so all calls to that
>function are bracketed with a FldSetSelection( pField, 0, 0 ). This call
>fails on my system, unless the field is read only, in which case the call
>to FldSetAttributes fails (to make the field usable before changing the
>contents). I am wondering if this is the debug rom under the simulator
>that is reporting a bogus error. It sure paints the screen strange colors.
> If my program really looked like that on a Palm IIIc I think I would feel
>a little queasy.
The Simulator uses a debug color palette to make it more obvious when
your app has drawing errors.
-- 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/