Error in v8.1.7 New version will not let file in project be save after files has been edited saying Notepad++ must be launched in "Administrator mode" even when Notepad++ was launched in that mode
![alt text](image u rl)
Stefan Pendl last edited by
May be it is marked as read-only.
You can check this at the bottom of the edit menu.
It might also be that another process is blocking the action.
It is NOT read-only. V8.1.5 runs correctly. v8.1.6 and v8.1.7 both have the error.
The error occurs (in v8.1.6 and v8.1.7) when my executable, which make a stock data plot, runs from input set in a file in the notepad++ project then makes a plot. While that plot is up (i.e the executable is running that used a previous instance of the input file and was already read), if I make parameter changes in that input file and try to save the file, that is when the error occurs. I have done this for years in notepad++ to run multiple plots of a stock for comparison. That is, multiple instances of the input file which has been changed while multiple other instances of that file are already running, has always worked and still does in v8.1.5 but not the more recent. There is clearly a bug in the code for those two versions.
Let me try to be more clear. My c++ code executable makes a stock data plot from parameters set in the input file. If I try to change those parameters so I can make a new plot while the executable is running, I get stopped by notepad++. It appears that the new versions erroneously changed the properties of the input file upon instantiation of the executable.
pnedev last edited by
Just a question:
Does your executable keep the file handle open by any chance?
The latest versions of Notepad++ use native Win32 file access API and if the file is in use (still open by some other program) they might fail to write the file.
@pnedev Thanks that appears to be it. I had an fopen in a library to which I was linking and it had no fclose. Seems to work now. Thank you very much for the catch!