Click here to Skip to main content
16,006,707 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to force a thread to end?? Pin
Tomasz Sowinski2-Aug-02 0:46
Tomasz Sowinski2-Aug-02 0:46 
GeneralRe: How to force a thread to end?? Pin
Olli2-Aug-02 3:05
Olli2-Aug-02 3:05 
AnswerRe: How to force a thread to end?? Pin
Navin2-Aug-02 3:08
Navin2-Aug-02 3:08 
GeneralRe: How to force a thread to end?? Pin
Olli2-Aug-02 3:16
Olli2-Aug-02 3:16 
GeneralRe: How to force a thread to end?? Pin
Daniel Lohmann2-Aug-02 3:53
Daniel Lohmann2-Aug-02 3:53 
GeneralRe: How to force a thread to end?? Pin
Todd Smith2-Aug-02 4:48
Todd Smith2-Aug-02 4:48 
GeneralRe: How to force a thread to end?? Pin
Navin2-Aug-02 4:53
Navin2-Aug-02 4:53 
AnswerRe: How to force a thread to end?? Pin
Joao Vaz2-Aug-02 5:19
Joao Vaz2-Aug-02 5:19 
The wininet support asynchrnous processing , so it's perhaps your best bet ...

You should never terminate a thread by the wicked TerminateProcess() and TerminateThread !!!!!!! Period !!!! It's doesn't clean up nicely ...



You have 2 ways of stopping a threading , one is waiting the thread for finnishing , duh , the other is to signal a kernel object Event,Mutex to the thread that you want to terminate, this thread is waiting on it with a WaitForSingleObject and alike functions ...


Or you only program with Win"k or XP, you can use jobs to safely terminate a thread or a bunch of threads ... check the api CreateJobObject ... I think that VC6++ compiler if I'm not mistaken uses this technique to stop the threads ... on Win2k Smile | :)







Cheers,
Joao Vaz
And if your dream is to care for your family, to put food on the table, to provide them with an education and a good home, then maybe suffering through an endless, pointless, boring job will seem to have purpose. And you will realize how even a rock can change the world, simply by remaining obstinately stationary. - Shog9
QuestionQueryStatus of IOleCommandTarget implemented... errors? Pin
Tommy Svensson2-Aug-02 0:25
Tommy Svensson2-Aug-02 0:25 
Generalusing assembly in turbo c++, help Pin
asif m@hmood1-Aug-02 23:42
asif m@hmood1-Aug-02 23:42 
GeneralRe: using assembly in turbo c++, help Pin
PJ Arends2-Aug-02 8:01
professionalPJ Arends2-Aug-02 8:01 
GeneralRe: using assembly in turbo c++, help Pin
asifmahmood2-Aug-02 8:24
asifmahmood2-Aug-02 8:24 
GeneralRe: using assembly in turbo c++, help Pin
PJ Arends2-Aug-02 10:06
professionalPJ Arends2-Aug-02 10:06 
GeneralRe: GOTOXY Pin
RaCeRx30-Oct-02 19:36
RaCeRx30-Oct-02 19:36 
GeneralDate serial <-> day month year Pin
Victor Vogelpoel1-Aug-02 23:31
Victor Vogelpoel1-Aug-02 23:31 
GeneralRe: Date serial <-> day month year Pin
[James Pullicino]1-Aug-02 23:37
[James Pullicino]1-Aug-02 23:37 
GeneralRe: Date serial <-> day month year Pin
Victor Vogelpoel3-Aug-02 7:01
Victor Vogelpoel3-Aug-02 7:01 
Generalchange the tab font of a property sheet from the same tab. Pin
Joan M1-Aug-02 23:14
professionalJoan M1-Aug-02 23:14 
GeneralRe: change the tab font of a property sheet from the same tab. Pin
Tomasz Sowinski1-Aug-02 23:51
Tomasz Sowinski1-Aug-02 23:51 
GeneralCRichEditCtrl MFC Pin
Anonymous1-Aug-02 22:55
Anonymous1-Aug-02 22:55 
GeneralRe: CRichEditCtrl MFC Pin
[James Pullicino]1-Aug-02 23:38
[James Pullicino]1-Aug-02 23:38 
GeneralRe: CRichEditCtrl MFC Pin
Olli2-Aug-02 1:16
Olli2-Aug-02 1:16 
GeneralBitmap -please help Pin
suresh_sathya1-Aug-02 22:06
suresh_sathya1-Aug-02 22:06 
GeneralRe: Bitmap -please help Pin
Christian Graus1-Aug-02 22:33
protectorChristian Graus1-Aug-02 22:33 
GeneralRe: Bitmap -please help Pin
suresh_sathya1-Aug-02 23:15
suresh_sathya1-Aug-02 23:15 

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.