<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Notepad++ lost track of open files / why?]]></title><description><![CDATA[<p dir="auto">using notepad++, i often leave files open across multiple tabs, both saved and unsaved alike.</p>
<p dir="auto">this morning, i started NPP and all tabs were closed, unexpectedly.</p>
<p dir="auto">any clue possibly why? i left it open last night and my pc did reboot itself for updates.</p>
<p dir="auto">my os is Windows 11 pro version 21H2.</p>
<p dir="auto">my debug info:</p>
<p dir="auto">Notepad++ v8.4.4   (64-bit)<br />
Build time : Jul 15 2022 - 17:54:42<br />
Path : C:\Program Files\Notepad++\notepad++.exe<br />
Command Line :<br />
Admin mode : OFF<br />
Local Conf mode : OFF<br />
Cloud Config : OFF<br />
OS Name : Windows 11 (64-bit)<br />
OS Version : 21H2<br />
OS Build : 22000.978<br />
Current ANSI codepage : 1252<br />
Plugins :<br />
ComparePlugin (2.0.2)<br />
mimeTools (2.8)<br />
NppConverter (4.4)<br />
NppExport (0.4)<br />
NPPJSONViewer (1.40)</p>
<p dir="auto">thank you.</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/23482/notepad-lost-track-of-open-files-why</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 21:43:07 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/23482.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Sep 2022 13:29:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Tue, 20 Sep 2022 19:03:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pnedev" aria-label="Profile: pnedev">@<bdi>pnedev</bdi></a></p>
<p dir="auto">There is also <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12194" rel="nofollow ugc">report</a> mentioning a possible coincidence with a pending N++ auto-update.</p>
<p dir="auto">User has periodic backups enabled too.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79916</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79916</guid><dc:creator><![CDATA[xomx]]></dc:creator><pubDate>Tue, 20 Sep 2022 19:03:28 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Tue, 20 Sep 2022 15:54:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xomx" aria-label="Profile: xomx">@<bdi>xomx</bdi></a> , All,</p>
<p dir="auto">I suspect that on occasions the periodic session backup might be triggered while in the process of WM_QUERYENDSESSION but that needs further investigation.</p>
<p dir="auto">BR</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79911</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79911</guid><dc:creator><![CDATA[pnedev]]></dc:creator><pubDate>Tue, 20 Sep 2022 15:54:09 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Tue, 20 Sep 2022 03:37:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pnedev" aria-label="Profile: pnedev">@<bdi>pnedev</bdi></a> yes:</p>
<p dir="auto"><img src="/assets/uploads/files/1663645050283-screen-shot-2022-09-19-at-11.37.12-pm.png" alt="Screen Shot 2022-09-19 at 11.37.12 PM.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/79898</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79898</guid><dc:creator><![CDATA[Fabian Santiago]]></dc:creator><pubDate>Tue, 20 Sep 2022 03:37:34 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Mon, 19 Sep 2022 19:05:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xomx" aria-label="Profile: xomx">@<bdi>xomx</bdi></a> said in <a href="/post/79892">Notepad++ lost track of open files / why?</a>:</p>
<blockquote>
<p dir="auto">If I am right, the solution is to handle the WM_QUERYENDSESSION and WM_CLOSE separately.</p>
</blockquote>
<p dir="auto">I haven’t looked at the code myself yet but that is a very good assumption <a class="plugin-mentions-user plugin-mentions-a" href="/user/xomx" aria-label="Profile: xomx">@<bdi>xomx</bdi></a> .</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fabian-santiago" aria-label="Profile: Fabian-Santiago">@<bdi>Fabian-Santiago</bdi></a> ,</p>
<p dir="auto">Could you also share your <code>Backup</code> settings tab?<br />
Thank you once again for the debug input.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79895</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79895</guid><dc:creator><![CDATA[pnedev]]></dc:creator><pubDate>Mon, 19 Sep 2022 19:05:21 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Mon, 19 Sep 2022 13:06:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andi-kiissel" aria-label="Profile: Andi-Kiissel">@<bdi>Andi-Kiissel</bdi></a></p>
<p dir="auto">Maybe it could be interesting to see the content of such config.xml too.</p>
<p dir="auto">Now about something else - I have just checked the relevant <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/ead6fb6b8fe26a503bb91b8387f037565597dc24/PowerEditor/src/NppBigSwitch.cpp#L2063" rel="nofollow ugc">N++ shutdown source code</a> and I have the following crazy idea (I have not tested/debugged that yet):</p>
<ul>
<li>the WM_QUERYENDSESSION and WM_CLOSE messages share the same code part</li>
<li>at the standard (user initiated closing of the N++ app) N++ shutdown, the N++ receives only the WM_CLOSE one from these two</li>
<li>when a Windows restart occurs, while the N++ is still opened, the N++ receives both of them, WM_QUERYENDSESSION 1st and the N++ executes the same code part as the WM_CLOSE, then returns TRUE (when an user did not cancelled the Windows restart/shutdown)</li>
<li>when an app sent TRUE to the Windows OS as a response to the WM_QUERYENDSESSION, that app shutdown continues, so the app should obtain the WM_CLOSE sometime later!</li>
<li>and I think that this “double-execution” of the same code part can be the culprit</li>
</ul>
<p dir="auto">Look at this <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/ead6fb6b8fe26a503bb91b8387f037565597dc24/PowerEditor/src/NppBigSwitch.cpp#L2117" rel="nofollow ugc">part</a> - I think that during the 1st execution all the opened files are closed, so at the 2nd execution the session has not any opened files to <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/blob/ead6fb6b8fe26a503bb91b8387f037565597dc24/PowerEditor/src/NppBigSwitch.cpp#L2171" rel="nofollow ugc">store</a>!</p>
<p dir="auto">If I am right, the solution is to handle the WM_QUERYENDSESSION and WM_CLOSE separately.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79892</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79892</guid><dc:creator><![CDATA[xomx]]></dc:creator><pubDate>Mon, 19 Sep 2022 13:06:08 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Mon, 19 Sep 2022 13:02:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xomx" aria-label="Profile: xomx">@<bdi>xomx</bdi></a> yes i do:</p>
<p dir="auto"><img src="/assets/uploads/files/1663592566055-screen-shot-2022-09-19-at-9.02.17-am.png" alt="Screen Shot 2022-09-19 at 9.02.17 AM.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.notepad-plus-plus.org/post/79891</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79891</guid><dc:creator><![CDATA[Fabian Santiago]]></dc:creator><pubDate>Mon, 19 Sep 2022 13:02:54 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Mon, 19 Sep 2022 10:29:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/xomx" aria-label="Profile: xomx">@<bdi>xomx</bdi></a><br />
At the same time config.xml gets 1032 bytes bigger. Quite a big difference.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79890</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79890</guid><dc:creator><![CDATA[Andi Kiissel]]></dc:creator><pubDate>Mon, 19 Sep 2022 10:29:01 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Mon, 19 Sep 2022 09:10:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fabian-santiago" aria-label="Profile: Fabian-Santiago">@<bdi>Fabian-Santiago</bdi></a></p>
<p dir="auto">Thanks for the log!</p>
<p dir="auto">Do you have your N++ autoupdate set ON? (Preferences -&gt; MISC. -&gt; Enable Notepad++ auto-updater checked)</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pnedev" aria-label="Profile: pnedev">@<bdi>pnedev</bdi></a></p>
<p dir="auto">This is the same pattern as in <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/9850#issuecomment-1138046702" rel="nofollow ugc">here</a>.</p>
<p dir="auto">The relevant thing is the last surprising duplicate of the WM_QUERYENDSESSION log, where the session.xml file evidently gets emptied (“2022-09-14 01:23:48 C:\Users\fabian\AppData\Roaming\Notepad++\session.xml 193/193 bytes are written.”)</p>
<p dir="auto">So we are getting a little bit closer - now let’s discuss how this could happen.</p>
<p dir="auto">If there were slightly different times in the duplicate log items at the end, I could suspect some N++ multi-instancing problem or N++ zombie/crashed process behind, but we have the same log-time everywhere. So I do not think so.</p>
<p dir="auto">If it was a racing condition, the last two WM_QUERYENDSESSION items would probably be mixed together. So I do not think so.</p>
<p dir="auto">I’m wondering if it cannot be a coincidence with the N++ autoupdating.</p>
<p dir="auto">Any other thoughts?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79888</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79888</guid><dc:creator><![CDATA[xomx]]></dc:creator><pubDate>Mon, 19 Sep 2022 09:10:15 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Mon, 19 Sep 2022 07:29:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fabian-santiago" aria-label="Profile: Fabian-Santiago">@<bdi>Fabian-Santiago</bdi></a> ,<br />
Thank you. I hope it will be useful and give some insight on the cause of the problem.</p>
<p dir="auto">BR</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79887</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79887</guid><dc:creator><![CDATA[pnedev]]></dc:creator><pubDate>Mon, 19 Sep 2022 07:29:50 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Sun, 18 Sep 2022 16:02:27 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pnedev" aria-label="Profile: pnedev">@<bdi>pnedev</bdi></a> sorry my reply took so long. here you are. it won’t let me upload / attach the log file here so this is the content (there was nothing sensitive in it so this is fully intact):</p>
<p dir="auto">2022-07-25 11:08:22  WM_QUERYENDSESSION =====================================<br />
2022-07-25 11:08:24  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is opened.<br />
2022-07-25 11:08:24  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml  8015/8015 bytes are written.<br />
2022-07-25 11:08:24  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is closed.<br />
2022-07-25 11:08:24  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is opened.<br />
2022-07-25 11:08:24  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml  3683/3683 bytes are written.<br />
2022-07-25 11:08:24  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is closed.<br />
2022-07-25 11:08:24  WM_ENDSESSION<br />
2022-07-25 11:08:24  WM_DESTROY<br />
2022-08-19 10:43:58  WM_QUERYENDSESSION =====================================<br />
2022-08-19 10:43:58  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is opened.<br />
2022-08-19 10:43:58  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml  8256/8256 bytes are written.<br />
2022-08-19 10:43:58  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is closed.<br />
2022-08-19 10:43:58  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is opened.<br />
2022-08-19 10:43:58  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml  6047/6047 bytes are written.<br />
2022-08-19 10:43:58  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is closed.<br />
2022-08-19 10:43:58  WM_ENDSESSION<br />
2022-08-19 10:43:58  WM_DESTROY<br />
2022-08-23 12:10:06  WM_QUERYENDSESSION =====================================<br />
2022-08-23 12:10:07  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is opened.<br />
2022-08-23 12:10:07  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml  8256/8256 bytes are written.<br />
2022-08-23 12:10:07  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is closed.<br />
2022-08-23 12:10:07  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is opened.<br />
2022-08-23 12:10:07  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml  5434/5434 bytes are written.<br />
2022-08-23 12:10:07  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is closed.<br />
2022-08-23 12:10:07  WM_ENDSESSION<br />
2022-08-23 12:10:07  WM_DESTROY<br />
2022-08-23 23:44:57  WM_QUERYENDSESSION =====================================<br />
2022-08-23 23:44:58  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is opened.<br />
2022-08-23 23:44:58  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml  8256/8256 bytes are written.<br />
2022-08-23 23:44:58  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is closed.<br />
2022-08-23 23:44:58  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is opened.<br />
2022-08-23 23:44:58  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml  5430/5430 bytes are written.<br />
2022-08-23 23:44:58  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is closed.<br />
2022-08-23 23:44:58  WM_ENDSESSION<br />
2022-08-23 23:44:58  WM_DESTROY<br />
2022-09-12 14:54:17  WM_QUERYENDSESSION =====================================<br />
2022-09-12 14:54:17  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is opened.<br />
2022-09-12 14:54:17  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml  8352/8352 bytes are written.<br />
2022-09-12 14:54:17  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is closed.<br />
2022-09-12 14:54:17  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is opened.<br />
2022-09-12 14:54:17  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml  3707/3707 bytes are written.<br />
2022-09-12 14:54:17  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is closed.<br />
2022-09-12 14:54:17  WM_ENDSESSION<br />
2022-09-12 14:54:17  WM_DESTROY<br />
2022-09-14 01:23:48  WM_QUERYENDSESSION =====================================<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is opened.<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml  8366/8366 bytes are written.<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is closed.<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is opened.<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml  3709/3709 bytes are written.<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is closed.<br />
2022-09-14 01:23:48  WM_QUERYENDSESSION =====================================<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is opened.<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml  9398/9398 bytes are written.<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\config.xml is closed.<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is opened.<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml  193/193 bytes are written.<br />
2022-09-14 01:23:48  C:\Users\fabian\AppData\Roaming\Notepad++\session.xml is closed.<br />
2022-09-14 01:23:48  WM_ENDSESSION<br />
2022-09-14 01:23:48  WM_DESTROY</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79874</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79874</guid><dc:creator><![CDATA[Fabian Santiago]]></dc:creator><pubDate>Sun, 18 Sep 2022 16:02:27 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Thu, 15 Sep 2022 11:54:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fabian-santiago" aria-label="Profile: Fabian-Santiago">@<bdi>Fabian-Santiago</bdi></a> ,</p>
<p dir="auto">That is exactly the folder I meant and the file we are looking for is <code>nppLogNulContentCorruptionIssue.log</code> as <a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> pointed out. I’m sorry for my very inaccurate description before, I really forgot the exact folder on Windows OS and the name of the log file (it appears on very rare and obviously unfortunate occasions).<br />
So it will be helpful if you could upload that file (or its contents) here but please check to be sure it is not revealing any sensitive data.<br />
Thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79816</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79816</guid><dc:creator><![CDATA[pnedev]]></dc:creator><pubDate>Thu, 15 Sep 2022 11:54:34 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 17:58:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> said in <a href="/post/79784">Notepad++ lost track of open files / why?</a>:</p>
<blockquote>
<p dir="auto">Maybe a PythonScript port of the C# code, …<br />
But I’m not going to do that</p>
</blockquote>
<p dir="auto">Okay, if you won’t, I will: <a href="https://community.notepad-plus-plus.org/post/79802">posted in the other thread</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79803</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79803</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 14 Sep 2022 17:58:39 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 17:10:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fabian-santiago" aria-label="Profile: Fabian-Santiago">@<bdi>Fabian-Santiago</bdi></a> said in <a href="/post/79798">Notepad++ lost track of open files / why?</a>:</p>
<blockquote>
<p dir="auto">anything else i can help provide? thanks for your help.</p>
</blockquote>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pnedev" aria-label="Profile: pnedev">@<bdi>pnedev</bdi></a> was asking for the contents of the <code>nppLogNulContentCorruptionIssue.log</code> file, which was in your directory listing screenshot.  That file contains the debug information necessary for the developers to fix the problem.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79800</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79800</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 14 Sep 2022 17:10:36 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 17:05:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/pnedev" aria-label="Profile: pnedev">@<bdi>pnedev</bdi></a> i don’t see a folder as you described. i assume you mean this folder: “C:\Users\fabian\AppData\Roaming\Notepad++”</p>
<p dir="auto">i don’t see any such file. its contents are:<br />
<img src="/assets/uploads/files/1663175011334-screen-shot-2022-09-14-at-1.03.21-pm.png" alt="Screen Shot 2022-09-14 at 1.03.21 PM.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">and my current session.xml is pretty bland:</p>
<p dir="auto">&lt;?xml version=“1.0” encoding=“UTF-8” ?&gt;<br />
&lt;NotepadPlus&gt;<br />
&lt;Session activeView=“0”&gt;<br />
&lt;mainView activeIndex=“0” /&gt;<br />
&lt;subView activeIndex=“0” /&gt;<br />
&lt;/Session&gt;<br />
&lt;/NotepadPlus&gt;</p>
<p dir="auto">anything else i can help provide? thanks for your help.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79798</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79798</guid><dc:creator><![CDATA[Fabian Santiago]]></dc:creator><pubDate>Wed, 14 Sep 2022 17:05:47 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 14:35:17 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/fabian-santiago" aria-label="Profile: Fabian-Santiago">@<bdi>Fabian-Santiago</bdi></a> ,</p>
<p dir="auto">I’m sorry for your problem loosing the session file.</p>
<p dir="auto">If you are willing to help diagnose the problem you could look for an xml file named nppSession… something (you will recognize it when you see it :) ) in your user config folder (C:\Users\your_user_name\Application Data\Notepad++) and if you find it upload it here (or its contents).<br />
It shouldn’t reveal any personal data only the process of closing Notepad++ before the reboot for updates but you better inspect its contents before sharing it here.</p>
<p dir="auto">That will probably be useful and surely appreciated, thanks.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79789</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79789</guid><dc:creator><![CDATA[pnedev]]></dc:creator><pubDate>Wed, 14 Sep 2022 14:35:17 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 14:14:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fabian-santiago" aria-label="Profile: Fabian-Santiago">@<bdi>Fabian-Santiago</bdi></a> said in <a href="/post/79785">Notepad++ lost track of open files / why?</a>:</p>
<blockquote>
<p dir="auto">most of my tabs were in fact saved in named files</p>
</blockquote>
<p dir="auto">This is good.</p>
<blockquote>
<p dir="auto">so i didn’t lose much.</p>
</blockquote>
<p dir="auto">Thankfully…</p>
<blockquote>
<p dir="auto">all tabs were closed, unexpectedly</p>
</blockquote>
<p dir="auto">We realize that loss of current session info – which sounds like the largest component of YOUR loss – is a tangible loss, as it takes effort to recreate it. :-(</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79786</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79786</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 14 Sep 2022 14:14:19 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 14:06:11 GMT]]></title><description><![CDATA[<p dir="auto">thanks gentlemen. lesson learned. fortunately, most of my tabs were in fact saved in named files so i didn’t lose much. i just have to re-open what i prefer to leave open for my purposes.</p>
<p dir="auto">i read thru the c# script and notes; my appdata backup folder is actually empty, so it won’t help me.</p>
<p dir="auto">thanks again.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79785</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79785</guid><dc:creator><![CDATA[Fabian Santiago]]></dc:creator><pubDate>Wed, 14 Sep 2022 14:06:11 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 14:00:52 GMT]]></title><description><![CDATA[<p dir="auto">Maybe a PythonScript port of the C# code, so the “ask” only becomes obtaining a Notepad++ plugin?</p>
<p dir="auto">But I’m not going to do that, as my interest level is LOW for it. :-)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79784</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79784</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 14 Sep 2022 14:00:52 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 13:56:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/alan-kilborn" aria-label="Profile: Alan-Kilborn">@<bdi>Alan-Kilborn</bdi></a> ,</p>
<p dir="auto">A few years ago, before I had visual studio, I had thought I had compiled some C# using just the csc.exe that came with the .NET framework (<code>c:\windows\Microsoft.NET\Framework\v4.0.30319\csc.exe</code> or similar)… but I haven’t found my notes yet, and when I tried that with <a class="plugin-mentions-user plugin-mentions-a" href="/user/sfcfs" aria-label="Profile: sfcfs">@<bdi>sfcfs</bdi></a> script, which I saved as <code>recover-lost-session.cs</code>, I got:</p>
<pre><code>recover-lost-session.cs(6,1): error CS0116: A namespace cannot directly contain members such as fields or methods
recover-lost-session.cs(13,8): error CS1001: Identifier expected
recover-lost-session.cs(13,10): error CS1518: Expected class, delegate, enum, interface, or struct
</code></pre>
<p dir="auto">But this isn’t a C# help forum, so I think I’ll stop trying.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79783</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79783</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 14 Sep 2022 13:56:28 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 13:50:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/peterjones" aria-label="Profile: PeterJones">@<bdi>PeterJones</bdi></a> said in <a href="/post/79781">Notepad++ lost track of open files / why?</a>:</p>
<blockquote>
<p dir="auto">quick instructions for C# newbies</p>
</blockquote>
<p dir="auto">I would think that C# requires Visual Studio, which is fine for those that already have it, but I’d go out on a limb and say the typical Notepad++ user wouldn’t.  Getting VS just for this is rather a big ask of someone.</p>
<p dir="auto">Of course, if the author of that C# were to build the .exe from it, and post that somewhere, and people trusted that the .exe was not evil, it is perhaps reasonable that people could run it (only requiring perhaps a .NET framework install – maybe that is too big of an ask as well).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79782</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79782</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 14 Sep 2022 13:50:22 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 13:44:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fabian-santiago" aria-label="Profile: Fabian-Santiago">@<bdi>Fabian-Santiago</bdi></a> ,</p>
<p dir="auto">That is unfortunate.</p>
<p dir="auto">If you haven’t done too much in Notepad++ since it lost track of those, you might be able to recover at least the list of unsaved tabs: <a class="plugin-mentions-user plugin-mentions-a" href="/user/sfcfs" aria-label="Profile: sfcfs">@<bdi>sfcfs</bdi></a> <a href="https://community.notepad-plus-plus.org/post/79695">shared a c# script a few days ago</a> which claims to rebuild session.xml to point to any of the unsaved-backup files that it can find.  (Of course, that requires that you know how to run a c# script…  I have pinged <a class="plugin-mentions-user plugin-mentions-a" href="/user/sfcfs" aria-label="Profile: sfcfs">@<bdi>sfcfs</bdi></a> in the other topic to add quick instructions for C# newbies so that the script can be useful to more people)</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79781</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79781</guid><dc:creator><![CDATA[PeterJones]]></dc:creator><pubDate>Wed, 14 Sep 2022 13:44:32 GMT</pubDate></item><item><title><![CDATA[Reply to Notepad++ lost track of open files / why? on Wed, 14 Sep 2022 13:39:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/fabian-santiago" aria-label="Profile: Fabian-Santiago">@<bdi>Fabian-Santiago</bdi></a> said in <a href="/post/79777">Notepad++ lost track of open files / why?</a>:</p>
<blockquote>
<p dir="auto">i often leave files open across multiple tabs, …unsaved …</p>
</blockquote>
<p dir="auto">Experience has shown this is a “bad idea”.  In theory it is fine, but in practice the unofficial recommendation is to name and save your files into the file system very soon after creating new tabs in Notepad++.</p>
<p dir="auto">This is also consistent with a modern-day backup strategy for your data (no backup scheme can back up files that aren’t in the file system).  If your data is important enough to create, it is important enough to back up.</p>
<blockquote>
<p dir="auto">i left it open last night and my pc did reboot itself for updates.</p>
</blockquote>
<p dir="auto">This is consistent with problems of this nature that have been reported before.</p>
<p dir="auto">Possible additional information that may apply is found <a href="https://community.notepad-plus-plus.org/topic/21782/faq-desk-periodic-backup-vs-autosave-plugin">HERE</a>.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/79779</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/79779</guid><dc:creator><![CDATA[Alan Kilborn]]></dc:creator><pubDate>Wed, 14 Sep 2022 13:39:56 GMT</pubDate></item></channel></rss>