Open nil-ref opened 10 months ago
Hello @nil-ref ,
Which version of Notepad3 are you using, as recent versions may have fixed this issue. 🤔
This copy the Notepad3 related settings to the clipboard and permit to past the content here. 🙄
Have you tried with latest Notepad3 beta (see issue #1129)
The latest version: Notepad3 (x64) 6.23.1020.1 rc (05a5eafc)
default settings.
The quick solution would be: switch off "file changed monitoring" for SMB file share. Notepad3 relies on two mechanisms for file change monitoring:
The cause of the problem lies in calling APIs such as GetFileAttributes that need to open files. These functions ultimately go through IopCreateFile->ObOpenObjectByName. However, they do not support asynchronous opening of files. Always wait/freeze when they go through the "\??\UNC\" NT path.
https://stackoverflow.com/questions/1142080/how-to-avoid-network-stalls-in-getfileattributes https://stackoverflow.com/questions/41300873/how-to-open-a-file-in-windows-asynchronously
Windows can't open a file asynchronously. Maybe this problem can only be solved using threads.
@nil-ref : Thanks for providing this interesting readings on Stackoverflow - always a good source of expert knowledge. I am going to give it a try ..., needs some time ...
When I use notepad3 to open a file (smb) on the LAN, the other party is offline. Notepad3 will be stuck for more than ten seconds because it constantly detects whether the file has changed.