Click here to Skip to main content
15,913,292 members
Home / Discussions / C#
   

C#

 
GeneralHide Data Grid View Columns 2 Pin
jasper01827-Feb-08 2:49
jasper01827-Feb-08 2:49 
GeneralRe: Hide Data Grid View Columns 2 Pin
Not Active27-Feb-08 3:14
mentorNot Active27-Feb-08 3:14 
GeneralRe: Hide Data Grid View Columns 2 Pin
jasper01827-Feb-08 3:39
jasper01827-Feb-08 3:39 
GeneralRe: Hide Data Grid View Columns 2 Pin
MuhammadFaisal27-Feb-08 4:21
MuhammadFaisal27-Feb-08 4:21 
GeneralRe: Hide Data Grid View Columns 2 Pin
jasper01827-Feb-08 6:03
jasper01827-Feb-08 6:03 
GeneralRe: Hide Data Grid View Columns 2 Pin
jasper01827-Feb-08 7:07
jasper01827-Feb-08 7:07 
GeneralPlz help Pin
alok_2k327-Feb-08 2:36
alok_2k327-Feb-08 2:36 
GeneralRe: Plz help Pin
Not Active27-Feb-08 2:40
mentorNot Active27-Feb-08 2:40 
GeneralRe: Plz help Pin
alok_2k327-Feb-08 3:23
alok_2k327-Feb-08 3:23 
GeneralRepost. Ignore message. Pin
J4amieC27-Feb-08 2:41
J4amieC27-Feb-08 2:41 
GeneralRe: Plz help Pin
Paul Conrad27-Feb-08 3:49
professionalPaul Conrad27-Feb-08 3:49 
GeneralRe: Plz help Pin
Le centriste27-Feb-08 4:24
Le centriste27-Feb-08 4:24 
GeneralRe: Plz help Pin
Paul Conrad27-Feb-08 6:55
professionalPaul Conrad27-Feb-08 6:55 
QuestionhttpWebRequest issue Pin
pelgrim_198327-Feb-08 2:34
pelgrim_198327-Feb-08 2:34 
GeneralByte[], alternate null chars Pin
Malcolm Smart27-Feb-08 2:30
Malcolm Smart27-Feb-08 2:30 
GeneralRe: Byte[], alternate null chars Pin
Bekjong27-Feb-08 2:55
Bekjong27-Feb-08 2:55 
GeneralRe: Byte[], alternate null chars Pin
Malcolm Smart27-Feb-08 3:01
Malcolm Smart27-Feb-08 3:01 
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

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.