Hi,
So, is there a possibility to solve this problem without manually clearing the stack by each new request in the global.asax? or is there no standard way to solve this problem?
greetings,
Adriaan
Robert Jordan wrote:
Adriaan van Kekem wrote:
> Hi,
>
> I have a mono application running with mod_mono on mono 1.2.4. I have
> created somewhere in my webapp a threadstatic variable, actually a generic
> stack with specific objects. No i am running my webapp, and seeing my log
> file, i see that sometimes the same thread is reused later. This is logical,
> because there is a threadpool containing all threads, using them later
> again. But when i see that the same thread is reused, the threadstatic
> variables are not reset. I don't know if this is a bug, from compiler view
> its right, because it's the same thread. But from webapplication view, i
> think this is not right.
>
> Is there any solution for this, or have i to report this as a real bug?
This is not a bug. As you said, the threads are reused. That's why
the [ThreadStatic] fields are already initialized.
Robert
_______________________________________________
Mono-list maillist - Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list