This
>global variables that are not accessed
>for write (just read) by the current loop
>are modified.
sounds like a stack overwrite problem. How large is your stack (STACKSIZE in the prm file)? Does it help if you increase it.
Did you try to set a watchpoint to the changing globals?
Daniel