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

C / C++ / MFC

 
QuestionRe: access to the task manager Pin
David Crow22-Sep-09 3:34
David Crow22-Sep-09 3:34 
AnswerRe: access to the task manager Pin
kilt24-Sep-09 7:10
kilt24-Sep-09 7:10 
QuestionSleep Pin
VVVimal22-Sep-09 3:24
VVVimal22-Sep-09 3:24 
QuestionRe: Sleep Pin
David Crow22-Sep-09 3:35
David Crow22-Sep-09 3:35 
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 
VVVimal wrote:
Unit threadFun(LPVOID lparam)
{
while(1)
{
Sleep(1000); // When tried to give break point over here appliacation gets terminates
............
}

}


I don't see why should the application "terminate" with this piece of code. (It might have probably helped us if you had given the remaining code within the thread function to see if anything is wrong)

With more than one thread running, may be the issue is somewhere else? Besides that, like David said, remove the unnecessary Sleep call and replace it with something that makes sense of some sort.


It is a crappy thing, but it's life -^ Carlo Pallini

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 
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 

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.