turn off all optimizations and check it again.  the compiler is probably
being smart a nusing the memory "a" was using for "b" since "a" is no longer
used in the scope.

$0.02

-- Paul

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Avi
> Halachmi
> Sent: Wednesday, July 19, 2000 6:10 AM
> To: Palm Developer Forum
> Subject: *REALLY* strange codewarrior debugger issue. confirmation
> anyone?
>
>
> ok.
> i've created a new OS3.5 stationary project, C++ App.
>
> this is my PilotMain:
>
> UInt32 PilotMain( UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags)
> {
>
>  UInt32 a;
>  UInt32 b;
>
>  a=10;
>  b=20;
>
>     return StarterPalmMain(cmd, cmdPBP, launchFlags);
> }
>
> the only modifications to the project are the 4 lines with the a and b
> variables.
>
> when single stepping through the code, the assignment 'a=10' also
> sets b to
> 10, and the next assignment 'b=20' also sets a to 20 (after each
> assignment,
> the a AND b variable are in red in the var window, and with same value)..
>
> this shows both in the variable window, and when i put the cursor
> over a or
> b in the code itself.
>
> can someone pls confirm the situation?
>
> i'm using codewarrior r6, os3.5 update 1,constructor v1.5b7, windows98 SE.
>
> any help??
>
> thx
> avi.
>
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/


-- 
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