It’s been a slow day for me so far… I’ve been trying to fix up some functionality in my .NET applications for work. Mixed results — I’m uncovering as many bugs as I’m fixing but at least things seem to be progressing. Currently I have two applications — one is running as a Windows Service. The second is monitoring this program and using remoting calls to retrieve statistics and get information in real-time as the process runs. Previously, if the Service was not running, the monitoring tool would hang for a while as it tries to do the remoting call and fails. To get around this issue, I have the Windows Service create a Mutex… The monitoring tool then checks this Mutex — if it exists, it knows (or at least can reasonably expect) that the remoting call will work.
This works except that the monitoring tool needs to be able to be located on any machine in the local network (not necesarily the same machine that the Windows Service is running on). I’ve just got to figure out how to do that. If any of my imaginary blog readers have any idea, please send me a [real] email. Thanks.