Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Cross-post Pin
fjdiewornncalwe18-Aug-11 8:17
professionalfjdiewornncalwe18-Aug-11 8:17 
GeneralRe: Cross-post Pin
Wendelius18-Aug-11 8:20
mentorWendelius18-Aug-11 8:20 
AnswerRe: plz brack my licence Pin
#realJSOP18-Aug-11 8:19
professional#realJSOP18-Aug-11 8:19 
QuestionDatagridview.rowvalidating event question Pin
Davey_guan18-Aug-11 4:54
Davey_guan18-Aug-11 4:54 
AnswerRe: Datagridview.rowvalidating event question Pin
BobJanova18-Aug-11 5:23
BobJanova18-Aug-11 5:23 
AnswerRe: Datagridview.rowvalidating event question Pin
Alan N18-Aug-11 5:32
Alan N18-Aug-11 5:32 
GeneralRe: Datagridview.rowvalidating event question Pin
Davey_guan18-Aug-11 18:09
Davey_guan18-Aug-11 18:09 
QuestionInter-Process Signalling with "unlimited" processes? Pin
Don Rolando18-Aug-11 4:44
Don Rolando18-Aug-11 4:44 
Hi everyone,

I have "unlimited" processes (let's say 5 to 20 is a realistic number)

What I need is the following:
From time to time one of the processes has to signal the others that they have something to do.

There is no master, so I won't create some server which passes arround events for all interested processes.

There is also no message/content, so I would favor some low-level signalling. But without a master process IPC is not very handy at all.

WaitEventHandle seemed to be a good choice; even though it also works on process-level, it does not always work properly.
Every listening process has a thread whichs calls WaitOne(); when the event is sent it starts some action, calls Reset() and loops back to WaitOne().
The process which wants to indicate something creates a WaitEventHandle with the same name and calls Set().

In a simple hello world application this worked pretty well; but in some other application exactly the same approach never passes the second WaitOne(). Just as if noone would call Set anymore (but the other process still does!)


Is there any other useful low-level signalling? I am also not happy about the background thread with the do-while around the WaitOne().
Why are there no monitors or counters that simply fire an event when some equally named object in a different process/thread raises an event. :p



Cheerio,
Roland
AnswerRe: Inter-Process Signalling with "unlimited" processes? Pin
BobJanova18-Aug-11 5:30
BobJanova18-Aug-11 5:30 
GeneralRe: Inter-Process Signalling with "unlimited" processes? Pin
Don Rolando18-Aug-11 10:03
Don Rolando18-Aug-11 10:03 
GeneralRe: Inter-Process Signalling with "unlimited" processes? Pin
SledgeHammer0118-Aug-11 10:28
SledgeHammer0118-Aug-11 10:28 
AnswerRe: Inter-Process Signalling with "unlimited" processes? Pin
jschell18-Aug-11 12:42
jschell18-Aug-11 12:42 
GeneralRe: Inter-Process Signalling with "unlimited" processes? Pin
Don Rolando18-Aug-11 21:36
Don Rolando18-Aug-11 21:36 
GeneralRe: Inter-Process Signalling with "unlimited" processes? Pin
jschell19-Aug-11 7:23
jschell19-Aug-11 7:23 
QuestionDatagrdiviewcell.errortext Pin
Davey_guan18-Aug-11 3:38
Davey_guan18-Aug-11 3:38 
AnswerRe: Datagrdiviewcell.errortext Pin
OriginalGriff18-Aug-11 6:04
mveOriginalGriff18-Aug-11 6:04 
GeneralRe: Datagrdiviewcell.errortext Pin
Davey_guan18-Aug-11 18:05
Davey_guan18-Aug-11 18:05 
Questioni got error when i try to connect to my WebService Pin
goldsoft17-Aug-11 21:47
goldsoft17-Aug-11 21:47 
AnswerRe: i got error when i try to connect to my WebService Pin
Nagy Vilmos17-Aug-11 22:22
professionalNagy Vilmos17-Aug-11 22:22 
AnswerRe: i got error when i try to connect to my WebService Pin
Subin Mavunkal18-Aug-11 8:25
Subin Mavunkal18-Aug-11 8:25 
Questionhow to handle ink In Microsoft.ink sdk Pin
zoyakhan17-Aug-11 21:39
zoyakhan17-Aug-11 21:39 
AnswerRe: how to handle ink In Microsoft.ink sdk Pin
BobJanova18-Aug-11 1:20
BobJanova18-Aug-11 1:20 
QuestionInheriting a template class [modified] Pin
Subin Mavunkal17-Aug-11 2:17
Subin Mavunkal17-Aug-11 2:17 
AnswerRe: Inheriting a template class [modified] Pin
Pete O'Hanlon17-Aug-11 2:19
mvePete O'Hanlon17-Aug-11 2:19 
AnswerRe: Inheriting a template class Pin
BobJanova17-Aug-11 3:09
BobJanova17-Aug-11 3:09 

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.