<分区> 分区>
我有一个双线程 C# 应用程序,其中两个线程都写入同一个日志,但我收到了一个错误。
'The process cannot access the file 'logfile.log' because it is being used by another process.'
总的来说,我对 C# 和多线程有些陌生,所以如果有人能在这里指出正确的方向,我将不胜感激。
<分区> 分区>
我有一个双线程 C# 应用程序,其中两个线程都写入同一个日志,但我收到了一个错误。
'The process cannot access the file 'logfile.log' because it is being used by another process.'
总的来说,我对 C# 和多线程有些陌生,所以如果有人能在这里指出正确的方向,我将不胜感激。