Click here to Skip to main content
16,014,706 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ 6.0 on WinXP?? Pin
Michael Dunn24-Dec-02 19:17
sitebuilderMichael Dunn24-Dec-02 19:17 
GeneralRe: VC++ 6.0 on WinXP?? Pin
Bartosz Bien25-Dec-02 12:00
Bartosz Bien25-Dec-02 12:00 
QuestionHow can i make a setup file for gdiplus? Pin
Xytme24-Dec-02 14:39
Xytme24-Dec-02 14:39 
Generalload a file when startup Pin
GooGoo24-Dec-02 14:10
GooGoo24-Dec-02 14:10 
GeneralRe: load a file when startup Pin
Gary R. Wheeler25-Dec-02 4:07
Gary R. Wheeler25-Dec-02 4:07 
GeneralRe: load a file when startup Pin
GooGoo25-Dec-02 13:08
GooGoo25-Dec-02 13:08 
QuestionCan a thread die abnormally? Pin
Todd Smith24-Dec-02 7:52
Todd Smith24-Dec-02 7:52 
AnswerRe: Can a thread die abnormally? Pin
Paul Belikian24-Dec-02 11:04
Paul Belikian24-Dec-02 11:04 
I'm not an expert, but one can check the thread handle to see if the thread is valid or not.

I suppose that if correctly coded, the thread shouldn't hang but rather exit it's loop. There should be no reason that the thread would just die or hang other than a code bug. Usually the OS would not start the thread if there were not enough resources available.

The way I've kept an eye on the threads was by posting thread messages from the worker to the main thread that reflect thread status, or utilize some type of watchdog that keeps an eye on the thread. If something doesn't happen (or the thread's task isn't completed within X timeout), the watchdog kills the thread or posts a message to the main thread. I have yet to see a thread hang or die for no reason, but if it did and coding was correct, I suspect that the entire system would be hung too. Well, as was stated before, I'm not an expert.

Regards,

Paul...
AnswerRe: Can a thread die abnormally? Pin
Michael Dunn24-Dec-02 18:27
sitebuilderMichael Dunn24-Dec-02 18:27 
GeneralRe: Can a thread die abnormally? Pin
Todd Smith26-Dec-02 6:38
Todd Smith26-Dec-02 6:38 
GeneralRe: Can a thread die abnormally? Pin
Michael Dunn26-Dec-02 7:06
sitebuilderMichael Dunn26-Dec-02 7:06 
GeneralRe: Can a thread die abnormally? Pin
Mike Nordell26-Dec-02 7:10
Mike Nordell26-Dec-02 7:10 
GeneralON_MESSAGE() and IMPLEMENT_DYNAMIC() macros Pin
Moak24-Dec-02 7:35
Moak24-Dec-02 7:35 
GeneralRe: ON_MESSAGE() and IMPLEMENT_DYNAMIC() macros Pin
Chris Richardson24-Dec-02 7:53
Chris Richardson24-Dec-02 7:53 
GeneralRe: ON_MESSAGE() and IMPLEMENT_DYNAMIC() macros Pin
Moak24-Dec-02 20:59
Moak24-Dec-02 20:59 
Generalfloatbar over cdialog Pin
Member 569669724-Dec-02 6:33
Member 569669724-Dec-02 6:33 
GeneralRe: floatbar over cdialog Pin
l a u r e n24-Dec-02 6:38
l a u r e n24-Dec-02 6:38 
GeneralRe: floatbar over cdialog Pin
Member 569669724-Dec-02 6:56
Member 569669724-Dec-02 6:56 
GeneralDisk S/N and creating directories Pin
RalfPeter24-Dec-02 6:20
RalfPeter24-Dec-02 6:20 
GeneralRe: Disk S/N and creating directories Pin
Nish Nishant24-Dec-02 6:29
sitebuilderNish Nishant24-Dec-02 6:29 
GeneralRe: Disk S/N and creating directories Pin
Chris Meech24-Dec-02 6:57
Chris Meech24-Dec-02 6:57 
GeneralRe: Disk S/N and creating directories Pin
Mike Nordell26-Dec-02 7:13
Mike Nordell26-Dec-02 7:13 
GeneralDevice Driver Pin
Mazdak24-Dec-02 5:27
Mazdak24-Dec-02 5:27 
GeneralRe: Device Driver Pin
l a u r e n24-Dec-02 5:30
l a u r e n24-Dec-02 5:30 
GeneralRe: Device Driver Pin
Mazdak24-Dec-02 6:33
Mazdak24-Dec-02 6:33 

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.