Yes, sorry Public without Shared.

Thanks for pointing that out Ryan.

Ben

On 2/28/07, Ryan Heath <[EMAIL PROTECTED]> wrote:
> 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(r)  http://www.develop.com

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


===================================
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