Compiler optimization. Try turning off compiler optimizations.
"David Beers" <[EMAIL PROTECTED]> wrote in message news:109725@palm-dev-forum... > > I'm debugging an app that borrows a good deal of code from the SDK samples > and having a curious problem. When I step through to what appears to be the > offending function I notice that one of the local variables declared in the > function doesn't display in the debugger window. All the others are there > with their values, but this one UInt16 type variable is simply absent. What > can cause this to happen? > > Using Codewarrior 8.3 with POSE 3.5 and SDK 4. Here's the function that I'm > having trouble with, for what it's worth (it's almost straight out the > Address application): > > void UnpackRecord (NeslPackedDBRecord *packed, > NeslDBRecordType *record) > { > Int16 index; > UInt16 flags; <--This is the variable that is missing in the debugger > char *p; > > record->status = packed->status; > flags = packed->flags.allBits; > p = &packed->firstField; > > for (index = 0; index < NeslFieldCount; index++) > { > if (GetBitMacro(flags, index) != 0) > { > record->fields[index] = p; > p += StrLen(p) + 1; > } > else > { > record->fields[index] = NULL; > } > } > } > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
