Skip to content

Conversation

@OHMI-Tetsuya
Copy link

Changes

  • Fixed BSOD that occurred when exiting Notepad++.
  • Moved console process termination from the destructor to NPPN_SHUTDOWN message handling.
  • Updated to the latest Notepad++ plugin template.

Cause

  • On Windows 11 24H2 (June 2025), a BSOD occurs if the console process termination is too slow.
  • Based on observed behavior, we suspect kernel-level changes are involved, though the exact root cause is not yet confirmed.

Solution

  • Changed console process termination to occur immediately when closing the window.
  • Waited up to 3000ms to confirm console process termination (avoiding an infinite wait to preventing Notepad++ from freezing).
  • Added process and thread handle closure, which had previously been missing.

These changes prevent BSOD on Windows 11 24H2 and improve overall shutdown stability.

VinsWorldcom and others added 9 commits October 26, 2021 08:43
Change program to run to a combo box
Allow manual overwrite in config file to appear in combobox
Add version URL link to Settings dialogue
Update BMP and remove LR_LOADMAP3DCOLORS to get toolbar shading
update About text, menu item names, Alt shortcuts
better version tracking in resources, update About / Settings layout
VS project updates for VS2019
Update settings about, Fix #4
Update VCXPROJ for standard output directories
Add VCXPROJ.USER for packaging
Add GitHub Actions

Merge branch 'develop'
Because of the funky way this embeds terminal into Notepad++, it essentially
acts as a separate application.  Using the shortkey key a user assigns to
"NppConsole Show" menu item, can either show/hide or now show/switch-to,
activate the panel.  Since then you are locked into that console, you can
use `Alt+Tab` to get back to Notepad++ since again, this is essentially a
separate process running inside a Notepad++ plugin dockable.

Merge branch 'develop'
Make function of "OK" button faciliate any changes and close dialog.
Make function of "Cancel" button just close dialog.

Merge branch 'develop'
…ation (#1) (#2)

* Fix BSOD when exiting Notepad++ caused by late console process termination (#1)

Terminate console process immediately on window close to prevent crash.

* Fix typo comment in destructor
…ation (#1)

Changes

Fixed BSOD occurring when exiting Notepad++
Moved console process termination from the destructor to the timing when the NPPN_SHUTDOWN message is received
Updated to the latest Notepad++ plugin template

Cause

On Windows 11 24H2 (June 2025), a BSOD occurs if the console process termination is too slow.
Based on observed behavior, we suspect kernel-level changes are involved, though the exact root cause is not yet confirmed.

Solution

Changed termination of the console process to occur immediately when closing the window
Waited up to 3000ms to confirm console process termination (avoids infinite wait to prevents Notepad++ from freezing)
Added process and thread handle closure, which had previously been missing

This change prevents BSOD on Windows 11 24H2 and ensures stable shutdown behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant