Re: [ADVANCED-DOTNET] Creating thread-safe classes to use in an ASP.NET app

2007-02-28 Thread Ben Joyce
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 th

Re: [ADVANCED-DOTNET] Creating thread-safe classes to use in an ASP.NET app

2007-02-28 Thread Ryan Heath
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

Re: [ADVANCED-DOTNET] Creating thread-safe classes to use in an ASP.NET app

2007-02-28 Thread Ben Joyce
I think I have found the problem. In my base class I had some variabled declared as "Protected Shared ". Multiple client sessions would create instances of classes derived from this base class and assign values to the variables (via exposed public properties). There was a situation yesterday wh

Re: [ADVANCED-DOTNET] Creating thread-safe classes to use in an ASP.NET app

2007-02-27 Thread Ben Joyce
No worries Erik, I do appreciate yours and anyone's input. If this *is* on-topic on an 'advanced' list as this then I hope someone may have some ideas. Cheers, Ben On 2/27/07, Stoyan Damov <[EMAIL PROTECTED]> wrote: On 2/27/07, Erik M. Erikson <[EMAIL PROTECTED]> wrote: > ... No offense here

Re: [ADVANCED-DOTNET] Creating thread-safe classes to use in an ASP.NET app

2007-02-27 Thread Stoyan Damov
On 2/27/07, Erik M. Erikson <[EMAIL PROTECTED]> wrote: ... No offense here. I didn't know you actually helped Ben before you ruled out his post as off-topic. Sorry, Stoyan === This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and mana

Re: [ADVANCED-DOTNET] Creating thread-safe classes to use in an ASP.NET app

2007-02-27 Thread Erik M. Erikson
I was the one that advised that this might not be the correct list to post to. I am relatively new to the list and although I am not exactly sure of the scope of this list, though the e-mails I have seen so far have been much more advanced in subject matter than what further discussion off-list un

Re: [ADVANCED-DOTNET] Creating thread-safe classes to use in an ASP.NET app

2007-02-27 Thread Stoyan Damov
On 2/27/07, Ben Joyce <[EMAIL PROTECTED]> wrote: I've been advised off-list that this is not the place to ask this sort of questions, my apologies. Ben Does this mean that: a) multithreading is NOT an advanced topic or b) mentioning ASP.NET along with multithreading makes your post off-topic?

Re: [ADVANCED-DOTNET] Creating thread-safe classes to use in an ASP.NET app

2007-02-27 Thread Ben Joyce
I've been advised off-list that this is not the place to ask this sort of questions, my apologies. Ben On 2/27/07, Ben Joyce <[EMAIL PROTECTED]> wrote: Hi. How do I ensure that the classes in my App_Code folder are thread-safe? I understand that an ASP.NET application can share properties/met

[ADVANCED-DOTNET] Creating thread-safe classes to use in an ASP.NET app

2007-02-27 Thread Ben Joyce
Hi. How do I ensure that the classes in my App_Code folder are thread-safe? I understand that an ASP.NET application can share properties/methods amoung all the instances of the pages/sessions but I want to protect my class(es) against this so that within my function/code the class data will not