It would help to have a look at your code and know what optimization level you're using with the compiler. When generating highly optimized code, the compiler may interpret some code is being run once and can be optimized out of existence.
---Tom
Message Edited by Scott C on 04-24-200604:47 PM
Message Edited by Scott C on 04-24-200604:53 PM
Message Edited by Scott C on 04-24-200604:54 PM
Hello
Basically the compiler is optimizing access to global variables. If you have something like
var = 4;
var = 5;
the compiler will only generate code to assign 5 to var.
To make sure the compiler does not optimize access to a variable, define it as volatile.
CrasyCat