I have written a trace listener that has at least one worker thread to process an internal buffer. When Close is called explicitely in the tracelistener hosting application, everthing is fine and dandy. if i add the TraceListener from the system.diagnostics section of the config file, the Close method doesn't ever get called. Does anyone have any idea when that method gets called when added through the config file?
Ryan,
This is a known problem (IMO). The only solution is to add a destructor to
your class and clean up there. The framework will not call
{TraceListener}.Close() or explicitly dispose of the reference.

Signature
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/
> I have written a trace listener that has at least one worker thread to process an internal buffer. When Close is called explicitely in the
tracelistener hosting application, everthing is fine and dandy. if i add
the TraceListener from the system.diagnostics section of the config file,
the Close method doesn't ever get called. Does anyone have any idea when
that method gets called when added through the config file?