I'm using Codewarrior 8.0 to develop a large application. I'm in 4 segments now. The last few days I've noticed that some variables I declare within a subroutine seem to be ignored. When I put a stop on them in the debugger the stop moves to a different line - usually the beginning of the routine. Execution skips over any line that uses the variables. I don't get any compile or link errors that I have seen. If I declare them as global variables everything is fine.
Are you building code with optimizations? The compiler may be eliminating those variables or assigning them to share space with other variables as part of the optimization process. I just posted an article here on palm-dev-forum two days ago talking a bit about what can happen during optimizations and how that affects the quality of data that the debugger has to show your values.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
