Skip to content

ShellObjectWatcher won't Destory #37

Description

@mtissington

Any app using the ShellObjectWatcher hangs when closing because of a background message loop.

See this https://stackoverflow.com/questions/9291929/c-sharp-app-using-windows-api-code-pack-shell-extension-wont-shut-down

The solution is to add a line to the function MessageListener.WndProc()​

case (uint)WindowMessage.Destr​oy:
 _running = false; // add this line to fix issue
 break;

Activity

  1. self-assigned this
    on Dec 7, 2025
  2. PWagner1 commented on Dec 7, 2025

    @PWagner1
    Owner

    Hi @mtissington

    Thanks for reporting, the fix is now in 8.0.14.

  3. linked a pull request that will close this issue* Version 8.0.14 #38on Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions