Hi,
I want to use events in multiple applications to communicate with each other. The problem is that if I create an event with the same name in two different Cocoa applications, two different events are allocated and not one (like in Windows). Is there maybe a special naming convention, or is it a bug?
(Note: createdNew will be sadly true in both applications, and App2 will hang.)
App1:
bool createdNew;
EventWaitHandle e = new EventWaitHandle(false, EventResetMode.ManualReset, "MyEvent", out createdNew);
e.Set();
App2:
bool createdNew;
EventWaitHandle e = new EventWaitHandle(false, EventResetMode.ManualReset, "MyEvent", out createdNew);
e.WaitOne();