12-15-2008 12:10 PM
12-16-2008 09:44 AM - edited 12-16-2008 09:48 AM
Shared variables must be initialized with a known value, and the node must be ran at least once, before predictable behavior can be expected. They don't behave like plain old global variables. The shared variable manager proves this out, as you've seen.
The easiest way to accomplish this is to have each shared variable you'll use in your application's initialize routine, and "read it out" and write to it once before ever using it in the main application.