--- Kevin Bosak wrote:
> I'm using CodeWarrior Lite 4.0.1 and am having
> problems with one variable overwriting another. 
> Within an if statement in one of my functions I
> declare a Boolean and an int.  When I set my the
> value
> of the int the Boolean is also set to that value and
> vice versa.  How could this be?  It seemed to work
> fine until I added database functionality elsewhere
> in
> my program.  Any ideas?
> 

You don't say how you are looking at the values of
those variables, but I'd guess that you are using the
debugger and you haven't turned off all optimizations
before stepping through your code.  The compiler can
use the same space for more than one variable if you
let it.  Always turn off all compiler optimizations
before stepping through code in the debugger.


__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com

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

Reply via email to