I'm trying to write a monitor app for Dream Daemon, a specific server app. Since the server app tends to crash (specifically, Dream Daemon is a server for a specific brand of interpreted code, so it's the interpreted code that's crashing, leaving DD idling).
To avoid people having to manually log on and restart the thing several times a day after the code we have it running crashes or glitches badly, I'm trying to set it to where an automatic monitor will check to see if the server's failed, and then close and restart the program. Because of some specific behaviour in Dream Daemon, I can't use a process.Close() call since DD intercepts that and simply minimizes itself to the system tray. If I process.Kill(), I end DD, but that leaves an orphaned notify bar icon left showing. I'm wondering if there is a way for me to then remove that icon programmatically, so my monitor program can clean up after itself.