Click here to Skip to main content
15,847,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to stop the thread if it's running? Pin
mikert_200829-Apr-09 22:19
mikert_200829-Apr-09 22:19 
GeneralRe: How to stop the thread if it's running? Pin
Cedric Moonen29-Apr-09 22:29
Cedric Moonen29-Apr-09 22:29 
GeneralRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 23:05
professionalRajesh R Subramanian29-Apr-09 23:05 
GeneralRe: How to stop the thread if it's running? Pin
Cedric Moonen29-Apr-09 23:11
Cedric Moonen29-Apr-09 23:11 
GeneralRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 23:19
professionalRajesh R Subramanian29-Apr-09 23:19 
GeneralRe: How to stop the thread if it's running? Pin
CPallini29-Apr-09 22:40
mveCPallini29-Apr-09 22:40 
GeneralRe: How to stop the thread if it's running? [modified] Pin
Rajesh R Subramanian29-Apr-09 23:00
professionalRajesh R Subramanian29-Apr-09 23:00 
NewsRe: How to stop the thread if it's running? Pin
Roger Stoltz29-Apr-09 23:26
Roger Stoltz29-Apr-09 23:26 
Rajesh R Subramanian wrote:
And if you're thinking of setting m_bAutoDelete to TRUE, I can almost confidently tell that your approach is wrong (it is so, in 90% of the cases).


Quite the contrary Rajesh.
In order to wait for the thread the thread handle must be valid and since the CWinThread destructor closes the handle. This issue is also addressed in the article.


Forget it! Shucks | :-\
Need more caffeine in the morning so I can read and distinguish between the letters in TRUE and FALSE.
Java | [Coffee] Java | [Coffee] Java | [Coffee] Java | [Coffee]


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


GeneralRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 23:30
professionalRajesh R Subramanian29-Apr-09 23:30 
GeneralRe: How to stop the thread if it's running? Pin
Roger Stoltz29-Apr-09 23:35
Roger Stoltz29-Apr-09 23:35 
GeneralRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 23:51
professionalRajesh R Subramanian29-Apr-09 23:51 
QuestionRe: How to stop the thread if it's running? Pin
CPallini29-Apr-09 23:42
mveCPallini29-Apr-09 23:42 
AnswerRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 23:49
professionalRajesh R Subramanian29-Apr-09 23:49 
AnswerRe: How to stop the thread if it's running? Pin
Roger Stoltz29-Apr-09 23:52
Roger Stoltz29-Apr-09 23:52 
GeneralRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 23:56
professionalRajesh R Subramanian29-Apr-09 23:56 
GeneralRe: How to stop the thread if it's running? Pin
Roger Stoltz30-Apr-09 0:04
Roger Stoltz30-Apr-09 0:04 
GeneralRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian30-Apr-09 0:11
professionalRajesh R Subramanian30-Apr-09 0:11 
GeneralRe: How to stop the thread if it's running? Pin
CPallini30-Apr-09 0:34
mveCPallini30-Apr-09 0:34 
GeneralRe: How to stop the thread if it's running? Pin
CPallini30-Apr-09 0:32
mveCPallini30-Apr-09 0:32 
GeneralRe: How to stop the thread if it's running? Pin
Roger Stoltz30-Apr-09 0:40
Roger Stoltz30-Apr-09 0:40 
GeneralRe: How to stop the thread if it's running? Pin
CPallini30-Apr-09 0:44
mveCPallini30-Apr-09 0:44 
GeneralRe: How to stop the thread if it's running? Pin
Rajesh R Subramanian29-Apr-09 23:45
professionalRajesh R Subramanian29-Apr-09 23:45 
GeneralRe: How to stop the thread if it's running? Pin
mikert_200830-Apr-09 1:26
mikert_200830-Apr-09 1:26 
GeneralRe: How to stop the thread if it's running? Pin
Roger Stoltz30-Apr-09 3:54
Roger Stoltz30-Apr-09 3:54 
QuestionRe: How to stop the thread if it's running? Pin
David Crow30-Apr-09 4:58
David Crow30-Apr-09 4:58 

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.