I've changed the variable declaration to "Public" and ran a test
(making use of System.Threading.Thread.Sleep) and with the Shared
declaration I was able to mimic the behavior and with Public it seems
to be "thread safe".


With "Public" you mean, without the "Shared" keyword?
If not, then it is still not "thread safe"...

If you have removed "Shared" than it more likely to be "thread safe".
Since the variable will not be 'shared' between the instances of the
class, but each class will have its own variable's value.

// Ryan

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to