Click here to Skip to main content
15,911,531 members
Home / Discussions / C#
   

C#

 
GeneralRe: Clipboard Exception ? Pin
Mohammad Dayyan16-Aug-08 2:18
Mohammad Dayyan16-Aug-08 2:18 
QuestionHow thread safe are static fields? Pin
JoeRip15-Aug-08 12:47
JoeRip15-Aug-08 12:47 
AnswerRe: How thread safe are static fields? Pin
Mark Salsbery15-Aug-08 12:53
Mark Salsbery15-Aug-08 12:53 
GeneralRe: How thread safe are static fields? Pin
JoeRip15-Aug-08 12:56
JoeRip15-Aug-08 12:56 
GeneralRe: How thread safe are static fields? Pin
Mark Salsbery15-Aug-08 13:29
Mark Salsbery15-Aug-08 13:29 
GeneralRe: How thread safe are static fields? Pin
JoeRip15-Aug-08 13:47
JoeRip15-Aug-08 13:47 
QuestionDo I still need to LOCK a Synchronized Queue? Pin
JoeRip15-Aug-08 11:51
JoeRip15-Aug-08 11:51 
AnswerRe: Do I still need to LOCK a Synchronized Queue? Pin
Wendelius15-Aug-08 12:30
mentorWendelius15-Aug-08 12:30 
I believe that this answers the question (from MSDN Queue.Synchronized Method[^]):
To guarantee the thread safety of the Queue, all operations must be done through this wrapper only.

Enumerating through a collection is intrinsically not a thread-safe procedure. 
Even when a collection is synchronized, other threads can still modify the collection, which causes the enumerator to throw an exception.
To guarantee thread safety during enumeration, 
you can either lock the collection during the entire enumeration or catch the exceptions resulting from changes made by other threads.

Mika
GeneralRe: Do I still need to LOCK a Synchronized Queue? Pin
JoeRip15-Aug-08 12:33
JoeRip15-Aug-08 12:33 
GeneralRe: Do I still need to LOCK a Synchronized Queue? Pin
Wendelius15-Aug-08 12:43
mentorWendelius15-Aug-08 12:43 
GeneralRe: Do I still need to LOCK a Synchronized Queue? Pin
JoeRip15-Aug-08 12:49
JoeRip15-Aug-08 12:49 
QuestionDeserialization, after GZipStream it´s possible?? (What is Wrong??) Pin
Guilherme Morais15-Aug-08 11:46
Guilherme Morais15-Aug-08 11:46 
AnswerRe: Deserialization, after GZipStream it´s possible?? (What is Wrong??) Pin
Guilherme Morais18-Aug-08 4:14
Guilherme Morais18-Aug-08 4:14 
QuestionHow to notify c# application from javascript Pin
tomc15-Aug-08 8:54
tomc15-Aug-08 8:54 
AnswerRe: How to notify c# application from javascript Pin
Pete O'Hanlon15-Aug-08 9:01
mvePete O'Hanlon15-Aug-08 9:01 
QuestionC# Code To Change System Date/Time Doesn't Work Pin
Kevin Marois15-Aug-08 8:24
professionalKevin Marois15-Aug-08 8:24 
AnswerRe: C# Code To Change System Date/Time Doesn't Work Pin
Pete O'Hanlon15-Aug-08 8:52
mvePete O'Hanlon15-Aug-08 8:52 
AnswerRe: C# Code To Change System Date/Time Doesn't Work Pin
Mark Salsbery15-Aug-08 9:00
Mark Salsbery15-Aug-08 9:00 
GeneralRe: C# Code To Change System Date/Time Doesn't Work Pin
Kevin Marois15-Aug-08 10:24
professionalKevin Marois15-Aug-08 10:24 
GeneralRe: C# Code To Change System Date/Time Doesn't Work Pin
Mycroft Holmes15-Aug-08 15:34
professionalMycroft Holmes15-Aug-08 15:34 
AnswerRe: C# Code To Change System Date/Time Doesn't Work Pin
Thomas Stockwell16-Aug-08 12:57
professionalThomas Stockwell16-Aug-08 12:57 
GeneralRe: C# Code To Change System Date/Time Doesn't Work Pin
alefaga8-May-09 5:00
alefaga8-May-09 5:00 
QuestionMask Internet IP Address Pin
maliaslam15-Aug-08 6:49
maliaslam15-Aug-08 6:49 
GeneralRe: Mask Internet IP Address Pin
Pete O'Hanlon15-Aug-08 8:31
mvePete O'Hanlon15-Aug-08 8:31 
AnswerRe: Mask Internet IP Address Pin
Manas Bhardwaj15-Aug-08 9:10
professionalManas Bhardwaj15-Aug-08 9:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.