Click here to Skip to main content
16,005,473 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: hello Pin
Pete O'Hanlon12-Apr-09 11:03
mvePete O'Hanlon12-Apr-09 11:03 
QuestionSafe thread termination in unmanaged code Pin
supercat99-Apr-09 8:06
supercat99-Apr-09 8:06 
AnswerRe: Safe thread termination in unmanaged code Pin
led mike9-Apr-09 9:10
led mike9-Apr-09 9:10 
GeneralRe: Safe thread termination in unmanaged code Pin
supercat99-Apr-09 9:44
supercat99-Apr-09 9:44 
GeneralRe: Safe thread termination in unmanaged code Pin
led mike9-Apr-09 10:55
led mike9-Apr-09 10:55 
GeneralRe: Safe thread termination in unmanaged code Pin
supercat99-Apr-09 11:43
supercat99-Apr-09 11:43 
GeneralRe: Safe thread termination in unmanaged code Pin
Luc 64801110-Apr-09 2:57
Luc 64801110-Apr-09 2:57 
GeneralRe: Safe thread termination in unmanaged code Pin
led mike10-Apr-09 5:37
led mike10-Apr-09 5:37 
supercat9 wrote:
"The documentation says to avoid using TerminateThread;


Well I thought I already covered this but let's have another go.

led mike wrote:
Terminating threads is never considered Best Practice. On the other hand if you have no other choice then it really doesn't matter what dangers might exist. Obviously, if you do have another choice then go with the other choice.


What it comes down to is if you can accomplish what is needed without terminating threads (stop the thread gracefully), do it that way, always, period. However if for some reason terminating threads is all you can do and you must do it, then it doesn't matter if there are dangers does it?

Now to me that seems like a pretty simple concept. However you seem to be thinking along another line that I have so far failed to understand.
Questionam i a programmer or not [modified] Pin
rilm9-Apr-09 7:48
rilm9-Apr-09 7:48 
AnswerRe: am i a programmer or not Pin
Paulo Zemek9-Apr-09 8:19
Paulo Zemek9-Apr-09 8:19 
GeneralRe: am i a programmer or not Pin
led mike9-Apr-09 8:41
led mike9-Apr-09 8:41 
GeneralRe: am i a programmer or not Pin
dojohansen15-Apr-09 1:40
dojohansen15-Apr-09 1:40 
GeneralRe: am i a programmer or not Pin
led mike15-Apr-09 11:49
led mike15-Apr-09 11:49 
GeneralRe: am i a programmer or not Pin
dojohansen16-Apr-09 0:44
dojohansen16-Apr-09 0:44 
GeneralRe: am i a programmer or not Pin
led mike16-Apr-09 5:18
led mike16-Apr-09 5:18 
GeneralRe: am i a programmer or not Pin
dojohansen16-Apr-09 5:29
dojohansen16-Apr-09 5:29 
GeneralRe: am i a programmer or not Pin
led mike16-Apr-09 7:30
led mike16-Apr-09 7:30 
AnswerRe: am i a programmer or not Pin
led mike9-Apr-09 8:43
led mike9-Apr-09 8:43 
GeneralRe: am i a programmer or not Pin
rilm11-Apr-09 11:22
rilm11-Apr-09 11:22 
AnswerRe: am i a programmer or not Pin
Eddy Vluggen9-Apr-09 10:03
professionalEddy Vluggen9-Apr-09 10:03 
AnswerRe: am i a programmer or not Pin
Anubhava Dimri10-Apr-09 23:24
Anubhava Dimri10-Apr-09 23:24 
AnswerRe: am i a programmer or not Pin
je_gonzalez12-Apr-09 21:55
je_gonzalez12-Apr-09 21:55 
GeneralRe: am i a programmer or not Pin
dojohansen15-Apr-09 1:48
dojohansen15-Apr-09 1:48 
AnswerRe: am i a programmer or not Pin
dojohansen15-Apr-09 1:38
dojohansen15-Apr-09 1:38 
AnswerRe: am i a programmer or not Pin
Pete O'Hanlon15-Apr-09 2:04
mvePete O'Hanlon15-Apr-09 2:04 

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.