Can you post the variable declarations?

Must be something there that your missing.

The above example compiles fine. Is there anything different?
<br>