Hello
Are you using ThreadStatic attribute? If so, the variable may be initialized
in one thread, and not initialized in another thread.
You need to post short code that demonstrates your problem to help people
help you.
Best regards,
Sherif
> Using a class with static members in a multi-thread executable results in
>
[quoted text clipped - 16 lines]
>
> Thanks
RobyFerro - 07 Sep 2004 08:27 GMT
Hello,
In this case I don't need to use ThreadStatic attribute for the static
members.
The class is a helper class to retrieve a connection string from
configuration file (in the samples the connection string is a constant
string), so the connection string is the same for all threads.
Anyway I tested ThreadStatic attribute with a proper initialization member
(without using a constructor). I will use this method only if there's no
other way,
About the sample it is the result of a long test and I can't reduce anymore
(I need 2 project application+library, I need a OpenConnection function, a
constructor, ecc.).
Thanks
RobyFerro
> Hello
>
[quoted text clipped - 27 lines]
> >
> > Thanks