Click here to Skip to main content
15,886,919 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Sleep Pin
VVVimal22-Sep-09 4:12
VVVimal22-Sep-09 4:12 
GeneralRe: Sleep Pin
David Crow22-Sep-09 4:13
David Crow22-Sep-09 4:13 
GeneralRe: Sleep Pin
Maximilien22-Sep-09 4:40
Maximilien22-Sep-09 4:40 
AnswerRe: Sleep Pin
Rajesh R Subramanian22-Sep-09 4:28
professionalRajesh R Subramanian22-Sep-09 4:28 
GeneralRe: Sleep Pin
etkid8422-Sep-09 6:15
etkid8422-Sep-09 6:15 
GeneralRe: Sleep Pin
Rajesh R Subramanian22-Sep-09 6:20
professionalRajesh R Subramanian22-Sep-09 6:20 
AnswerRe: Sleep Pin
etkid8422-Sep-09 6:24
etkid8422-Sep-09 6:24 
AnswerRe: Sleep Pin
Chuck O'Toole22-Sep-09 15:26
Chuck O'Toole22-Sep-09 15:26 
I use Sleep() all the time in threaded code, there's no reason it should cause the termination in and of itself.

However, the thread code you show runs in the context of a larger program, notably the main thread which created the thread you show. What is that thread doing? If it exits, it will take the created thread down with it.

Make sure the main code is waiting for this thread to terminate before it does.
AnswerRe: Sleep Pin
chandu00422-Sep-09 21:01
chandu00422-Sep-09 21:01 
GeneralRe: Sleep Pin
VVVimal30-Sep-09 2:05
VVVimal30-Sep-09 2:05 
GeneralRe: Sleep Pin
Chuck O'Toole30-Sep-09 8:58
Chuck O'Toole30-Sep-09 8:58 
QuestionRead excel *.xlsx Pin
MsmVc22-Sep-09 2:50
MsmVc22-Sep-09 2:50 
QuestionRe: Read excel *.xlsx Pin
David Crow22-Sep-09 2:55
David Crow22-Sep-09 2:55 
AnswerRe: Read excel *.xlsx Pin
MsmVc22-Sep-09 2:57
MsmVc22-Sep-09 2:57 
AnswerRe: Read excel *.xlsx Pin
Rajesh R Subramanian22-Sep-09 4:39
professionalRajesh R Subramanian22-Sep-09 4:39 
QuestionATL programming Pin
santhosh-padamatinti22-Sep-09 2:35
santhosh-padamatinti22-Sep-09 2:35 
AnswerRe: ATL programming Pin
CPallini22-Sep-09 2:38
mveCPallini22-Sep-09 2:38 
AnswerRe: ATL programming Pin
Rajesh R Subramanian22-Sep-09 4:35
professionalRajesh R Subramanian22-Sep-09 4:35 
Questionhow to set background color of menu and submenu in vc++ Pin
prerananit22-Sep-09 1:45
prerananit22-Sep-09 1:45 
AnswerRe: how to set background color of menu and submenu in vc++ Pin
Game-point22-Sep-09 2:00
Game-point22-Sep-09 2:00 
Questiondisplaying of context menu in richedittextbox control in vc++,mfc Pin
prerananit22-Sep-09 1:42
prerananit22-Sep-09 1:42 
AnswerRe: displaying of context menu in richedittextbox control in vc++,mfc Pin
Richard MacCutchan22-Sep-09 2:20
mveRichard MacCutchan22-Sep-09 2:20 
QuestionHow to call a method from soap base .net web service? Pin
bankey101022-Sep-09 1:23
bankey101022-Sep-09 1:23 
QuestionProblem with get/set method [modified] Pin
Sivyo22-Sep-09 0:16
Sivyo22-Sep-09 0:16 
AnswerRe: Problem with get/set method Pin
Nuri Ismail22-Sep-09 0:41
Nuri Ismail22-Sep-09 0: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.