* ExampleBrowser.cs:

Fixed support console and persistent tracing.
This commit is contained in:
the_fiddler 2010-12-08 07:43:43 +00:00
parent 2fc35f4d70
commit 5c23242665

View file

@ -420,7 +420,16 @@ namespace Examples
{
try
{
_main.Invoke(null, null);
using (TextWriterTraceListener dbg = new TextWriterTraceListener("debug.log"))
{
Trace.Listeners.Add(dbg);
Trace.Listeners.Add(new ConsoleTraceListener());
_main.Invoke(null, null);
dbg.Flush();
dbg.Close();
}
}
catch (TargetInvocationException expt)
{