Date: 09/20/05 (C Sharp) Keywords: no keywords When using System.Diagnostics.Trace to well...trace, what is the best way to make sure that TextWriterTraceListeners get closed? I saw in a few examples that you can call Trace.Close(), but then it seems like you'd have to either use a finalizer or else re-open and then close the Trace each time you needed it. Source: http://www.livejournal.com/community/csharp/35290.html
|