Click here to Skip to main content
15,896,063 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CString Pin
_AnsHUMAN_ 19-Sep-06 2:07
_AnsHUMAN_ 19-Sep-06 2:07 
AnswerRe: CString Pin
KarstenK19-Sep-06 2:27
mveKarstenK19-Sep-06 2:27 
AnswerRe: CString Pin
David Crow19-Sep-06 2:59
David Crow19-Sep-06 2:59 
AnswerRe: CString Pin
Zac Howland19-Sep-06 3:14
Zac Howland19-Sep-06 3:14 
QuestionTHread TErmination PRoblem!! Pin
WIr3D 0x9019-Sep-06 1:08
WIr3D 0x9019-Sep-06 1:08 
AnswerRe: THread TErmination PRoblem!! Pin
Christopher Duncan19-Sep-06 1:14
Christopher Duncan19-Sep-06 1:14 
AnswerRe: THread TErmination PRoblem!! Pin
_AnsHUMAN_ 19-Sep-06 1:17
_AnsHUMAN_ 19-Sep-06 1:17 
AnswerRe: THread TErmination PRoblem!! Pin
Jörgen Sigvardsson19-Sep-06 5:17
Jörgen Sigvardsson19-Sep-06 5:17 
WIr3D 0x90 wrote:
i want to know how to terminate child thread from parent thread, any API or tutorials will be helpful,,

I second Mr Duncan's suggestion: Do NOT terminate threads unless you know they are safe to be killed. Should the thread be executing within the C-runtime library for instance, holding a mutex/critical section object, you will effectively cause a dead lock (sooner or later). To only safe way to terminate a thread is to use some form of communication. The absolutely simplest way is to pass a variable through CreateThread/_beginthread which your thread should monitor regularly. As soon as this variable's value becomes true (or whatever variable type you choose), you can then have the thread exit itself. During exit you can then make sure that various locks and resources are released as needed.

Seriously. Do not kill threads by forece. You will regret it later. Smile | :)


--
Mit viel Oktan und frei von Blei, eine Kraftstoff wie Benziiiiiiin!

QuestionToolbar image list color depth Pin
Christopher Duncan19-Sep-06 0:56
Christopher Duncan19-Sep-06 0:56 
AnswerRe: Toolbar image list color depth Pin
pratapM19-Sep-06 1:31
pratapM19-Sep-06 1:31 
AnswerRe: Toolbar image list color depth Pin
tanvon malik19-Sep-06 1:32
tanvon malik19-Sep-06 1:32 
AnswerRe: Toolbar image list color depth Pin
pratapM19-Sep-06 1:33
pratapM19-Sep-06 1:33 
AnswerRe: Toolbar image list color depth Pin
tanvon malik19-Sep-06 2:01
tanvon malik19-Sep-06 2:01 
GeneralRe: Toolbar image list color depth Pin
Christopher Duncan19-Sep-06 4:26
Christopher Duncan19-Sep-06 4:26 
AnswerRe: Toolbar image list color depth Pin
Jörgen Sigvardsson19-Sep-06 2:07
Jörgen Sigvardsson19-Sep-06 2:07 
GeneralRe: Toolbar image list color depth Pin
Christopher Duncan19-Sep-06 4:29
Christopher Duncan19-Sep-06 4:29 
GeneralRe: Toolbar image list color depth Pin
Jörgen Sigvardsson19-Sep-06 5:11
Jörgen Sigvardsson19-Sep-06 5:11 
GeneralRe: Toolbar image list color depth Pin
Christopher Duncan19-Sep-06 11:24
Christopher Duncan19-Sep-06 11:24 
AnswerRe: Toolbar image list color depth Pin
KarstenK19-Sep-06 2:34
mveKarstenK19-Sep-06 2:34 
AnswerThanks, everyone! Pin
Christopher Duncan19-Sep-06 11:25
Christopher Duncan19-Sep-06 11:25 
QuestionHow to convert char* to char Pin
vc++_fragrance19-Sep-06 0:28
vc++_fragrance19-Sep-06 0:28 
AnswerRe: How to convert char* to char Pin
prasad_som19-Sep-06 0:37
prasad_som19-Sep-06 0:37 
GeneralRe: How to convert char* to char Pin
vc++_fragrance19-Sep-06 0:47
vc++_fragrance19-Sep-06 0:47 
QuestionRe: How to convert char* to char Pin
prasad_som19-Sep-06 1:05
prasad_som19-Sep-06 1:05 
AnswerRe: How to convert char* to char Pin
vc++_fragrance19-Sep-06 1:23
vc++_fragrance19-Sep-06 1:23 

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.