on 8/24/00 9:01 AM, Dean Salman at [EMAIL PROTECTED] wrote:
> CharPtr a,b;
>
> 1. a = FldGetTextPtr( getObject( form, SecurityConfirmField ));
>
> 2. b = FldGetTextPtr( getObject( form, SecurityPasswordField ));
>
> GetObject gets the pointer for the field, given that:
>
> When line 1 executes, both A and B have what ConfirmField has
> When line 2 executes, both A and B have what PasswordField has
>
> How do you get data from a field, this seems to be working but I don't
> understand how B can equal A when line 1 executes.
It sounds as if you have optimization turned on, which can confuse the
debugger, especially if stack variables are being stored in registers or
being reused.
Try turning off all optimizations for debugging (recommended) or declaring a
and b as volatile CharPtr or volatile Char *a, *b (I'd turn off
optimizations).
----------------------------------------------
JB Parrett [EMAIL PROTECTED]
Palm, Inc.
We grow a lot faster than trees,
so we miss a lot of stuff. - B. Andreas
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/