"Gregg Woodcock" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to be a GoodCoder (TM) and did a global replace to conform to > the Palm standard data type naming convention (e.g. "int" -> "Int16", etc.). > I use cygwin/GCC and have encountered a strange bug after this conversion. > Please don't ask why I am doing it this way because really I'm not; this is > just a stripped-down, bare-bones hunk of code which demonstrates the > problem. On POSE, I get "<App> just read from memory location <loc> which > is in an unallocated chunk of memory." On a real device, it just chugs and > chugs forever in some kind of infinite loop (addressing through the > 'threeChars' string/array).
This must be a compiler bug. A "Char" is typedef'd to be equivalent to a "char" in PalmTypes.h, so naturally you would expect there to be no difference in the code. I compiled your code using CW9.2 and not surprisingly it produced code that was exactly equivalent on a binary level. Have you tried looking at the disassembly of the two individual functions to see what the compiler thingks is going on? I'm sure that will reveal some discrepancy between the two pieces of code. BTW: Is this the same Gregg Woodcock who works for Nortel? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
