Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
GeneralRe: Regex Match counting problem Pin
Mohammad A Gdeisat2-Aug-08 0:59
Mohammad A Gdeisat2-Aug-08 0:59 
GeneralRe: Regex Match counting problem [modified] Pin
User 66582-Aug-08 1:08
User 66582-Aug-08 1:08 
AnswerRe: Regex Match counting problem Pin
Gideon Engelberth2-Aug-08 2:22
Gideon Engelberth2-Aug-08 2:22 
QuestionLabel Text Pin
nelsonpaixao1-Aug-08 14:13
nelsonpaixao1-Aug-08 14:13 
AnswerRe: Label Text Pin
MarkB7771-Aug-08 14:45
MarkB7771-Aug-08 14:45 
AnswerRe: Label Text Pin
DaveyM691-Aug-08 21:13
professionalDaveyM691-Aug-08 21:13 
AnswerRe: Label Text Pin
Thomas Stockwell2-Aug-08 7:34
professionalThomas Stockwell2-Aug-08 7:34 
QuestionHow to use Queue.Synchronized Pin
JoeRip1-Aug-08 13:58
JoeRip1-Aug-08 13:58 
It's not clear to me how I am expected to use Queue Synchronization.

Is this a general state, which makes the Queue thread safe? Or is this a short, temporary measure I use to lock the queue before I read or write it, and immediately release it when I'm done?

The documentation and samples are too short and don't go into detail on this.

So my question is: do I simply wrap my Queue with a synchronized wrapper and leave it on, doing all further access through that wrapper?

Or do I only wrap the Queue when I'm accessing it, and immediately drop the wrapper when I'm done?

Do I pass the wrapper to other objects, or only the original Queue?

Thanks for any help here.
AnswerRe: How to use Queue.Synchronized Pin
Mark Salsbery1-Aug-08 14:27
Mark Salsbery1-Aug-08 14:27 
GeneralRe: How to use Queue.Synchronized Pin
JoeRip1-Aug-08 15:02
JoeRip1-Aug-08 15:02 
GeneralRe: How to use Queue.Synchronized Pin
Mark Salsbery1-Aug-08 15:12
Mark Salsbery1-Aug-08 15:12 
QuestionDataGridView Navigation (i bet it´s easy) Pin
nelsonpaixao1-Aug-08 13:29
nelsonpaixao1-Aug-08 13:29 
QuestionHow do I make this code display the contents of the stack at the top of the text box.? Pin
Angelinna1-Aug-08 12:15
Angelinna1-Aug-08 12:15 
AnswerRe: How do I make this code display the contents of the stack at the top of the text box.? Pin
Guffa1-Aug-08 12:51
Guffa1-Aug-08 12:51 
GeneralRe: How do I make this code display the contents of the stack at the top of the text box.? Pin
Angelinna1-Aug-08 13:54
Angelinna1-Aug-08 13:54 
GeneralRe: How do I make this code display the contents of the stack at the top of the text box.? Pin
Lim Yuxuan1-Aug-08 17:53
Lim Yuxuan1-Aug-08 17:53 
GeneralRe: How do I make this code display the contents of the stack at the top of the text box.? Pin
Angelinna1-Aug-08 20:34
Angelinna1-Aug-08 20:34 
QuestionDesktop News Ticker Pin
wajans1-Aug-08 6:51
wajans1-Aug-08 6:51 
AnswerMessage Closed Pin
1-Aug-08 7:44
Bassam Saoud1-Aug-08 7:44 
GeneralRe: Hard drives Pin
Nish Nishant28-Oct-11 10:57
sitebuilderNish Nishant28-Oct-11 10:57 
AnswerRe: Desktop News Ticker Pin
Paul Conrad1-Aug-08 8:20
professionalPaul Conrad1-Aug-08 8:20 
GeneralRe: Desktop News Ticker Pin
wajans1-Aug-08 8:30
wajans1-Aug-08 8:30 
GeneralRe: Desktop News Ticker Pin
Paul Conrad1-Aug-08 8:34
professionalPaul Conrad1-Aug-08 8:34 
GeneralRe: Desktop News Ticker Pin
wajans1-Aug-08 9:07
wajans1-Aug-08 9:07 
GeneralRe: Desktop News Ticker Pin
nelsonpaixao1-Aug-08 13:56
nelsonpaixao1-Aug-08 13:56 

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.