Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Diagnostics.Trace funktioniert nicht mehr

瀏覽次數:3 次
跳到第一則未讀訊息

Robert Klein

未讀,
2010年6月1日 上午8:54:012010/6/1
收件者:
Hello,
I have a a problem with the following command:
System.Diagnostics.Trace.WriteLine("TEST!")

when I compile as a .NET 3.5 assembly it works, but when I compile the
identical project as a .NET 4.0 assembly the trace will not carried out.

I only want to use the DefaultListener and not to implement a
CustomTraceListener.

I tried it under Vista and Win7 with the VS2010 Ultimate.
For the DebugMonitor I use Sysinternals DbgView.

Can anybody help me ?
Thanks
Robert

Thomas Scheidegger

未讀,
2010年6月1日 上午9:12:212010/6/1
收件者:
Hallo Robert

vorab,
diese NG ist kurz vor Abschaltung!

> System.Diagnostics.Trace.WriteLine("TEST!")


> .NET 4.0 assembly the trace will not carried out.

versuche mal:
DefaultTraceListener defListener = new DefaultTraceListener();
defListener.WriteLine("BlaBla\r\n");

mit EXE _ausserhalb_ vom VStudio/Debugger ausgeführt.
Achte auch auf irgendwelche .config Dateien.


--
Thomas Scheidegger - 'NETMaster'
http://dnetmaster.net/

0 則新訊息