Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is static constructor threadsafe?
Message
From
27/03/2009 19:44:08
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Is static constructor threadsafe?
Environment versions
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01391935
Message ID:
01391935
Views:
112
Hi,
I have read couple of articles and mentioned that static constructor is thread safe. However, in my experience, it will hit error whenever more than one call to it at the same time. I solve it by using lock().

Any ideas?

Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Next
Reply
Map
View

Click here to load this message in the networking platform