What could cause an XML file to be filled with null characters?

前端 未结 5 1503
忘掉有多难
忘掉有多难 2020-12-28 18:01

This is a tricky question. I suspect it will require some advanced knowledge of file systems to answer.

I have a WPF application, \"App1,\" targeting .NET framework

5条回答
  •  灰色年华
    2020-12-28 18:53

    I ran into a similar issue but it was on a server. The server restarted while a program was writing to a file which caused the file to contain all null characters and become unusable to the program writing/reading from it.

    So the file looked like this:

    The logs showed that the server restarted:

    The corrupted file showed that it was last updated at the time of the restart:

提交回复
热议问题