I was experiences with Notepad++ crashing on me when I tried to open it, and I tracked it back to the session.xml file in "%APPDATA%\Notepad++\session.xml".
When I looked at the XML, I found out that some of the "File" nodes were missing a text value to indicate the path to the file. See the example below (angle brackets replaced with square brackets):
----
[NotepadPlus]
[Session actifIndex="1"]
[File firstVisibleLine="0" xOffset="0" startPos="0" endPos="0"]C:\temp\test\SetupWin2003.bat[/File]
[File firstVisibleLine="0" xOffset="0" startPos="792" endPos="854"][/File]
[File firstVisibleLine="0" xOffset="0" startPos="16" endPos="16"]C:\temp\test\ClientFilesCopy.bat[/File]
[/Session]
[/NotepadPlus]
----
Now, I am not completely sure what was done to cause this to happen since I was just using it as normal, and so I feel that there is a bug somewhere that might be causing this.
It might be a good idea to put more checks in place for handling a corrupt session file, and default it to a blank session should failure happen on loading the session XML. On the other hand, if there is a failure in loading one of the file paths in the XML, then it should be ignored.
Alternately, I would suggest a safemode version, as another icon, that could be rung that would allow a user to get into the application using a blank session and/or default install setting.
Just my 2 cents.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was experiences with Notepad++ crashing on me when I tried to open it, and I tracked it back to the session.xml file in "%APPDATA%\Notepad++\session.xml".
When I looked at the XML, I found out that some of the "File" nodes were missing a text value to indicate the path to the file. See the example below (angle brackets replaced with square brackets):
----
[NotepadPlus]
[Session actifIndex="1"]
[File firstVisibleLine="0" xOffset="0" startPos="0" endPos="0"]C:\temp\test\SetupWin2003.bat[/File]
[File firstVisibleLine="0" xOffset="0" startPos="792" endPos="854"][/File]
[File firstVisibleLine="0" xOffset="0" startPos="16" endPos="16"]C:\temp\test\ClientFilesCopy.bat[/File]
[/Session]
[/NotepadPlus]
----
Now, I am not completely sure what was done to cause this to happen since I was just using it as normal, and so I feel that there is a bug somewhere that might be causing this.
It might be a good idea to put more checks in place for handling a corrupt session file, and default it to a blank session should failure happen on loading the session XML. On the other hand, if there is a failure in loading one of the file paths in the XML, then it should be ignored.
Alternately, I would suggest a safemode version, as another icon, that could be rung that would allow a user to get into the application using a blank session and/or default install setting.
Just my 2 cents.