dokan-dev / dokan-dotnet

Dokan DotNet Wrapper
http://dokan-dev.github.io
MIT License
462 stars 116 forks source link

Does it only support running in the console? #312

Closed qiandi closed 2 years ago

qiandi commented 2 years ago

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

Liryna commented 2 years ago

Hi @qiandi ,

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.