Click here to Skip to main content
16,005,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Time conversion Pin
-Dy22-Apr-02 2:48
-Dy22-Apr-02 2:48 
GeneralRe: Time conversion Pin
Sameer Maggon22-Apr-02 19:01
Sameer Maggon22-Apr-02 19:01 
GeneralMicrosoft SAPI Speech Help! Pin
22-Apr-02 0:35
suss22-Apr-02 0:35 
GeneralWaitForMultipleObject() and Threads Synch Pin
22-Apr-02 0:17
suss22-Apr-02 0:17 
GeneralRe: WaitForMultipleObject() and Threads Synch Pin
_Magnus_22-Apr-02 0:33
_Magnus_22-Apr-02 0:33 
GeneralRe: WaitForMultipleObject() and Threads Synch Pin
kortebi22-Apr-02 1:12
kortebi22-Apr-02 1:12 
GeneralRe: WaitForMultipleObject() and Threads Synch Pin
_Magnus_22-Apr-02 5:50
_Magnus_22-Apr-02 5:50 
GeneralRe: WaitForMultipleObject() and Threads Synch Pin
Neville Franks22-Apr-02 1:43
Neville Franks22-Apr-02 1:43 
kortebi wrote:
The PROBLEM is that WaitForMultipleObject return WAIT_FAILED or WAIT_TIMEOUT, but i am sure that the threads terminate within 5000 ms, if a make an INFINITE timeout my application remain Busy.

They can't have terminated within 5 seconds because if they have then using INFINITE wouldn't hang on WaitForMultipleObjects().

UI threads are a pain the behind in MFC and you can easily get into a deadlock. Have you tried #ifdefing out all of the code inside the thread functions and see if WaitForMultipleObjects() behaves as you expect?

Also add TRACE statements at the end of the thread functions so you can see when they finish.

Threads in MFC are the bain of my life. Dead | X|

Neville Franks, Author of ED for Windows. www.getsoft.com
GeneralRe: WaitForMultipleObject() and Threads Synch Pin
kortebi22-Apr-02 3:18
kortebi22-Apr-02 3:18 
GeneralRe: WaitForMultipleObject() and Threads Synch Pin
Joaquín M López Muñoz22-Apr-02 3:29
Joaquín M López Muñoz22-Apr-02 3:29 
GeneralRe: WaitForMultipleObject() and Threads Synch Pin
Neville Franks22-Apr-02 10:59
Neville Franks22-Apr-02 10:59 
GeneralRe: WaitForMultipleObject() and Threads Synch Pin
23-Apr-02 0:50
suss23-Apr-02 0:50 
QuestionWhat MsOffice file type is ? Pin
22-Apr-02 0:12
suss22-Apr-02 0:12 
AnswerRe: What MsOffice file type is ? Pin
Christian Graus22-Apr-02 0:35
protectorChristian Graus22-Apr-02 0:35 
AnswerRe: What MsOffice file type is ? Pin
bryce22-Apr-02 1:47
bryce22-Apr-02 1:47 
GeneralMs Word automation... Generating Tables Damn Slow ! Pin
Braulio Dez22-Apr-02 0:04
Braulio Dez22-Apr-02 0:04 
GeneralRe: Ms Word automation... Generating Tables Damn Slow ! Pin
Bill Wilson22-Apr-02 9:17
Bill Wilson22-Apr-02 9:17 
GeneralRe: Ms Word automation... Generating Tables Damn Slow ! Pin
Braulio Dez22-Apr-02 21:02
Braulio Dez22-Apr-02 21:02 
GeneralDateTimePicker Size Pin
22-Apr-02 0:01
suss22-Apr-02 0:01 
GeneralChange Application Fonts, Time Picker Pin
21-Apr-02 22:17
suss21-Apr-02 22:17 
Questionhow can i add preview function like ie. thx Pin
21-Apr-02 22:07
suss21-Apr-02 22:07 
GeneralWriteProfileString Pin
Gaurika Wijeratne21-Apr-02 21:17
Gaurika Wijeratne21-Apr-02 21:17 
GeneralRe: WriteProfileString Pin
Mazdak21-Apr-02 21:34
Mazdak21-Apr-02 21:34 
GeneralRe: WriteProfileString Pin
Mazdak21-Apr-02 21:48
Mazdak21-Apr-02 21:48 
QuestionManaged C++ - A must in Visual C++ .NET? Pin
Rickard Andersson2021-Apr-02 20:30
Rickard Andersson2021-Apr-02 20:30 

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.