I spoke too soon. It seemed to work for the debugger but not in the
executable code.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ben
Combee
Sent: Wednesday, December 10, 2003 12:13 PM
To: Palm Developer Forum
Subject: Re: Goofy Variables in Codewarrior


At 10:52 AM 12/10/2003, Dave Mottorn wrote:
>         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/



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to