Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Shared EventWaitHandle between Cocoa applications

$
0
0

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();


Viewing all articles
Browse latest Browse all 204402

Trending Articles