Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is static constructor threadsafe?
Message
De
27/03/2009 19:44:08
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Is static constructor threadsafe?
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01391935
Message ID:
01391935
Vues:
113
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...
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform