D
Dilip
I have an application (lets call it app_1) that creates a named event
using the EventWaitHandle class and friends. I use it to determine
from other external apps if app_1 is still running. I do it by
performing an EventWaitHandle.OpenExisting on the said named event.
The problem is even after app_1 is shut down (the named event is
properly closed before app_1 exits) doing EventWaitHandle.OpenExisting
from other external applications still succeeds! This is a problem
for me because now I can no longer rely on the absence of the event to
tell me if app_1 is running or not.
Why is the event still hanging around? I know there are other ways to
detect if a process is running or not but I want to know why this
won't work.
using the EventWaitHandle class and friends. I use it to determine
from other external apps if app_1 is still running. I do it by
performing an EventWaitHandle.OpenExisting on the said named event.
The problem is even after app_1 is shut down (the named event is
properly closed before app_1 exits) doing EventWaitHandle.OpenExisting
from other external applications still succeeds! This is a problem
for me because now I can no longer rely on the absence of the event to
tell me if app_1 is running or not.
Why is the event still hanging around? I know there are other ways to
detect if a process is running or not but I want to know why this
won't work.