Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using SyncLock
Message
From
24/01/2011 11:53:07
 
 
To
24/01/2011 11:36:17
General information
Forum:
ASP.NET
Category:
Other
Title:
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01496120
Message ID:
01497203
Views:
40
>As I replied to Bonnie, you may want to add an initializer to the dictionary property
>
>For a non static property it will initalize when oApp is instantiated
>
>for a static property, it will initialize when the static class is first accessed or the static property is first accessed
>
>http://msdn.microsoft.com/en-us/library/ms182275(v=VS.100).aspx
>
>
>You don't need any locks then - as I see it


You still need a lock ... it's even more important when using static/shared!

~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform