Click here to Skip to main content
15,888,984 members
Home / Discussions / C#
   

C#

 
GeneralPrinting Graphics Pin
rognog19-Nov-04 1:33
rognog19-Nov-04 1:33 
GeneralRe: Printing Graphics Pin
benjymous19-Nov-04 5:23
benjymous19-Nov-04 5:23 
GeneralRe: Printing Graphics Pin
Heath Stewart19-Nov-04 8:16
protectorHeath Stewart19-Nov-04 8:16 
GeneralRe: Printing Graphics Pin
Daniel Turini19-Nov-04 6:03
Daniel Turini19-Nov-04 6:03 
GeneralRe: Printing Graphics Pin
Heath Stewart19-Nov-04 8:24
protectorHeath Stewart19-Nov-04 8:24 
QuestionHow could I know all the threads have been executed? Pin
momer18-Nov-04 22:19
momer18-Nov-04 22:19 
AnswerRe: How could I know all the threads have been executed? Pin
benjymous18-Nov-04 22:30
benjymous18-Nov-04 22:30 
AnswerRe: How could I know all the threads have been executed? Pin
Daniel Turini18-Nov-04 23:10
Daniel Turini18-Nov-04 23:10 
Common solutions are:
1. Array of bools or a bool property on each thread controlling object (only if you need to know which threads are still running).
2. Static counter that gets incremented when each thread finishes.
3. Thread.Join each thread.
4. Use a synchronization object, e.g., an ManualResetEvent (my favorite).

Whatever solution you chose, don't forget to put robust exception handling, or your program will wait forever in case of an exception.

Yes, even I am blogging now!
GeneralNETBIOS Pin
Y3YPnATOP18-Nov-04 22:06
Y3YPnATOP18-Nov-04 22:06 
GeneralRe: NETBIOS Pin
Heath Stewart19-Nov-04 8:35
protectorHeath Stewart19-Nov-04 8:35 
GeneralDataGrid control Pin
sasan5618-Nov-04 20:30
sasan5618-Nov-04 20:30 
GeneralRe: DataGrid control Pin
DougW4818-Nov-04 20:38
DougW4818-Nov-04 20:38 
GeneralRe: DataGrid control Pin
drayab18-Nov-04 20:51
drayab18-Nov-04 20:51 
GeneralDataGridTimePickerColumn question Pin
Old Gun18-Nov-04 16:22
Old Gun18-Nov-04 16:22 
GeneralRe: DataGridTimePickerColumn question Pin
Heath Stewart19-Nov-04 8:38
protectorHeath Stewart19-Nov-04 8:38 
GeneralRe: DataGridTimePickerColumn question Pin
Old Gun20-Nov-04 21:06
Old Gun20-Nov-04 21:06 
QuestionHow to perform carriage return by coding,not by clicking the Enter key? Pin
momer18-Nov-04 16:04
momer18-Nov-04 16:04 
AnswerRe: How to perform carriage return by coding,not by clicking the Enter key? Pin
Daniel Turini18-Nov-04 20:41
Daniel Turini18-Nov-04 20:41 
AnswerRe: How to perform carriage return by coding,not by clicking the Enter key? Pin
Luis Alonso Ramos19-Nov-04 9:03
Luis Alonso Ramos19-Nov-04 9:03 
Generaldatagrid slow updating Pin
bwagz18-Nov-04 14:21
bwagz18-Nov-04 14:21 
GeneralArrayList in ArrayList Pin
stumpi18-Nov-04 13:52
stumpi18-Nov-04 13:52 
GeneralRe: ArrayList in ArrayList Pin
maibuihuynhtg18-Nov-04 16:43
maibuihuynhtg18-Nov-04 16:43 
GeneralOverriding soap interpretation of specific types Pin
WildRide18-Nov-04 13:32
WildRide18-Nov-04 13:32 
GeneralRe: Overriding soap interpretation of specific types Pin
steve_hocking19-Nov-04 3:23
steve_hocking19-Nov-04 3:23 
QuestionHow can i get the ID3 info on MP3s Pin
visiontec18-Nov-04 13:30
visiontec18-Nov-04 13:30 

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.