Ingo Rammer [mailto:[EMAIL PROTECTED]] wrote:
> write a trace lib that checks something like a semaphore [1] > which will be flagged as soon as the "Tracer GUI" is running. > It will then (only if the app is listening, i.e. if it's > flagged) send remoting requests to an object which is > published by the tracer gui on localhost via a TCPChannel. This is perfect... except I'd wouldn't go writing a whole trace lib. Just implement a custom TraceListener. This way it can hook into Debug and Trace Write calls alike via a configuration file (like any other TraceListener). Also, while it would be windows specific, you might consider just looking for a a listening app that uses DebugActiveProcess and WaitForDebugEvent with a DEBUG_EVENT value of OUTPUT_DEBUG_STRING_EVENT because the System.Diagnostics.DefaultTraceListener implementation on windows broadcasts via OutputDebugString. I'm sure someone has to have already written one of these. Later, Drew You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.