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

C / C++ / MFC

 
AnswerRe: how to set tab stop order programmatically Pin
Hans Dietrich29-Apr-03 7:23
mentorHans Dietrich29-Apr-03 7:23 
GeneralRe: how to set tab stop order programmatically Pin
Vincent Ye29-Apr-03 7:31
Vincent Ye29-Apr-03 7:31 
AnswerRe: how to set tab stop order programmatically Pin
David Crow29-Apr-03 8:25
David Crow29-Apr-03 8:25 
QuestionCan Appendmenu show Images & Text for teh same Menu Item? Pin
allcodeluver29-Apr-03 6:22
allcodeluver29-Apr-03 6:22 
Generalquestion on templates Pin
grscot29-Apr-03 6:14
grscot29-Apr-03 6:14 
GeneralUser defined class to Variant type Pin
makaveli1998200229-Apr-03 5:33
makaveli1998200229-Apr-03 5:33 
GeneralFile Globbing Library for MS Visual C 98 Pin
japheth29-Apr-03 5:23
japheth29-Apr-03 5:23 
GeneralWaitForMultipleObjects And notifying Pin
justin22329-Apr-03 4:59
justin22329-Apr-03 4:59 
Hello

I've got a class that contains an event called hNewData that is manually resetted, initial not signalled and no security attributes.

The event is used to signal my workerthread when some new data should be sent.

In the workerthread I wait for some diffrent events:
hEvents[0] = pTP->hStopEvent;
hEvents[1] = pTP->hNewDataEvent;
hEvents[2] = osWriter.hEvent;
hEvents[3] = osReader.hEvent;
hEvents[4] = hDoReadEvent;


pTP is a point to a struct that is passed to the thread when I create it.

My problem is that WaitForMultipleObjects only detects that signal state randomly, and I have no f****n clue why. Starting to get desperate here, so please help.

The class is a socket communication class..
GeneralRe: WaitForMultipleObjects And notifying Pin
valikac29-Apr-03 6:27
valikac29-Apr-03 6:27 
GeneralRe: WaitForMultipleObjects And notifying Pin
justin22329-Apr-03 6:36
justin22329-Apr-03 6:36 
GeneralRe: WaitForMultipleObjects And notifying Pin
valikac29-Apr-03 9:08
valikac29-Apr-03 9:08 
GeneralRe: WaitForMultipleObjects And notifying Pin
justin22329-Apr-03 19:45
justin22329-Apr-03 19:45 
GeneralRe: WaitForMultipleObjects And notifying Pin
Joel Lucsy30-Apr-03 3:11
Joel Lucsy30-Apr-03 3:11 
GeneralRe: WaitForMultipleObjects And notifying Pin
jgauffin30-Apr-03 3:14
jgauffin30-Apr-03 3:14 
GeneralCode authentication mechanism Pin
ITMan29-Apr-03 4:51
ITMan29-Apr-03 4:51 
GeneralRe: Code authentication mechanism Pin
jmkhael29-Apr-03 4:58
jmkhael29-Apr-03 4:58 
GeneralSmall CString question. Pin
Maximilien29-Apr-03 4:47
Maximilien29-Apr-03 4:47 
GeneralRe: Small CString question. Pin
David Crow29-Apr-03 5:19
David Crow29-Apr-03 5:19 
GeneralRe: Small CString question. Pin
Hans Dietrich29-Apr-03 5:28
mentorHans Dietrich29-Apr-03 5:28 
QuestionHow to create a process with a different name? Pin
Chen Venkataraman29-Apr-03 4:17
Chen Venkataraman29-Apr-03 4:17 
AnswerRe: How to create a process with a different name? Pin
David Crow29-Apr-03 5:23
David Crow29-Apr-03 5:23 
AnswerRe: How to create a process with a different name? Pin
basementman29-Apr-03 6:41
basementman29-Apr-03 6:41 
GeneralRe: How to create a process with a different name? Pin
Chen Venkataraman29-Apr-03 9:01
Chen Venkataraman29-Apr-03 9:01 
GeneralRe: How to create a process with a different name? Pin
Dave Kreskowiak29-Apr-03 9:29
mveDave Kreskowiak29-Apr-03 9:29 
GeneralTemplate question Pin
grscot29-Apr-03 3:32
grscot29-Apr-03 3:32 

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.