Click here to Skip to main content
15,899,937 members
Home / Discussions / C#
   

C#

 
GeneralRe: Byte[], alternate null chars Pin
Bekjong27-Feb-08 3:14
Bekjong27-Feb-08 3:14 
GeneralRe: Byte[], alternate null chars Pin
Malcolm Smart27-Feb-08 3:37
Malcolm Smart27-Feb-08 3:37 
GeneralRe: Byte[], alternate null chars Pin
Bekjong27-Feb-08 3:47
Bekjong27-Feb-08 3:47 
GeneralAre child threads of an object destroyed when an object is destroyed. Pin
Sunset Towers27-Feb-08 2:26
Sunset Towers27-Feb-08 2:26 
GeneralRe: Are child threads of an object destroyed when an object is destroyed. Pin
Roger Alsing27-Feb-08 2:35
Roger Alsing27-Feb-08 2:35 
GeneralRe: Are child threads of an object destroyed when an object is destroyed. Pin
Not Active27-Feb-08 2:39
mentorNot Active27-Feb-08 2:39 
GeneralRe: Are child threads of an object destroyed when an object is destroyed. Pin
Bekjong27-Feb-08 2:41
Bekjong27-Feb-08 2:41 
GeneralRe: Are child threads of an object destroyed when an object is destroyed. Pin
pbraun27-Feb-08 9:09
pbraun27-Feb-08 9:09 
The best solution for this is to use a flag in each thread that when set to true allows the thread to run. When this same flag is set to false, the thread exits. Then in the dispose method, set the flag to false and the threads will exit. This is called a co-operative exit which allows the thread to complete its current task before exiting.

Using thread pool threads to complete your work may seem like a good idea, but one must remember that thread pool threads are not executed if the system is busy. In otherwords, if the work being done in a thread is critical, it should not be put in a thread pool thread.

Using thread.abort() to terminate the thread means that if the thread will be interrupted during its execution and told to terminate. If the task being performed by the thread is critical and must be completed, using thread.abort() will at some point interrupt that task and cause problems.

Phil

GeneralSpeech comparison Pin
Yoyosch27-Feb-08 2:24
Yoyosch27-Feb-08 2:24 
GeneralRe: Speech comparison Pin
mav.northwind27-Feb-08 3:39
mav.northwind27-Feb-08 3:39 
GeneralRe: Speech comparison Pin
Yoyosch27-Feb-08 3:49
Yoyosch27-Feb-08 3:49 
GeneralRe: Speech comparison Pin
Justin Perez27-Feb-08 4:02
Justin Perez27-Feb-08 4:02 
QuestionHow to write properties in design time Pin
El'Cachubrey27-Feb-08 2:15
El'Cachubrey27-Feb-08 2:15 
AnswerRe: How to write properties in design time Pin
Xmen Real 27-Feb-08 2:33
professional Xmen Real 27-Feb-08 2:33 
Generalstore files in a database Pin
Member 366830827-Feb-08 2:13
Member 366830827-Feb-08 2:13 
GeneralRe: store files in a database Pin
Aaron VanWieren27-Feb-08 3:35
Aaron VanWieren27-Feb-08 3:35 
GeneralRe: store files in a database Pin
Member 36683081-Mar-08 23:12
Member 36683081-Mar-08 23:12 
GeneralIO.Directory.GetFiles() Problem.. Pin
ptr2void27-Feb-08 0:55
ptr2void27-Feb-08 0:55 
GeneralRe: IO.Directory.GetFiles() Problem.. Pin
Giorgi Dalakishvili27-Feb-08 1:02
mentorGiorgi Dalakishvili27-Feb-08 1:02 
Questionhow to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
puneet.priyadarshi27-Feb-08 0:48
puneet.priyadarshi27-Feb-08 0:48 
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
Giorgi Dalakishvili27-Feb-08 0:57
mentorGiorgi Dalakishvili27-Feb-08 0:57 
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
puneet.priyadarshi27-Feb-08 1:00
puneet.priyadarshi27-Feb-08 1:00 
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
Giorgi Dalakishvili27-Feb-08 1:04
mentorGiorgi Dalakishvili27-Feb-08 1:04 
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
Mel Padden27-Feb-08 2:33
Mel Padden27-Feb-08 2:33 
GeneralRe: how to convert a file(word doc, image etc) to byte array and back to file(word doc,image etc) Pin
Xmen Real 27-Feb-08 2:41
professional Xmen Real 27-Feb-08 2:41 

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.