On Thu, 28 Mar 2002, Jim Schram wrote: > > // code warrior puts 12 bytes of junk at the beginning of the segment > > #ifdef __GNUC__ > > codePtr = (void *)MemHandleLock(memHandle); > > #else > > codePtr = (void *)MemHandleLock(memHandle) + 12; > > #endif > > Huh? > > Those "12 bytes of junk" contain perfectly valid code. There's no reason > to assume (and hard-code?!) a 12-byte offset. That will definitely break > if CW's code generation is ever changed/improved.
for some stupid reason, i had to :) but, in any event, i resorted to use code warrior only for quick-and-dirty things. all the real work gets done in prc-tools. i was getting crashes with codewarrior built resources.. why? dunno. but, it was crashing - and, this was the fix. the fix still applies for cw release 8. keep in mind the code resource was being used for a special purpose :) and, if it changes/improves - i'll update it :P it would be nice to have the same code work on both prc-tools and codewarrior.. but, this is an extreme case :) // az "messes around too much with crazy stuff like this" [EMAIL PROTECTED] http://www.ardiri.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
