I experience the weirdest behaviour w/ CW 7/8. In a function I pass a
variable uInfo of Type:
typedef struct
{
Char name[17];
Int32 docNo;
} UserType
which gets inited in the passing function like so:
UserType uInfo;
Char name[17];
//get form and field ptrs ...
StrCopy(uInfo.name, FldGetTextPtr(nameFld));
uInfo.regNo = StrAToI( FldGetTextPtr(dcoNoFld));
//error checking ...
AddUser(uInfo);
Stepping through the code I find that once in
AddUser(UserType uInfo)
uInfo doesn't show up in the variables window and any code that uses uInfo
shows garbage values. Trying a
if (sizeof(uInfo))
ends up with a line that one can't put a breakpoint to and get ignored by
the compiler.
TIA for any ideas at all.
Arthur
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/