The same code is normal in the console, but it reports a memory error when running on wpf.(both wpf and console are netcore)
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Through the log, it is found that some unknown files and folders appear in fileName in the CreateFile method, such as desktop.ini, .git, HEAD, folder.jpg, AutoRun.inf, etc.
Remarks: Except one is console and one is wpf, other information is the same
No the library is not limited to console. Could you debug to find out what is returning this error ?
The unknown files and folders are normal. It is the system checking whether they exist.
The same code is normal in the console, but it reports a memory error when running on wpf.(both wpf and console are netcore)
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Through the log, it is found that some unknown files and folders appear in fileName in the CreateFile method, such as desktop.ini, .git, HEAD, folder.jpg, AutoRun.inf, etc.
Remarks: Except one is console and one is wpf, other information is the same