HPS WPF App won't exit

I added a HPS window to a WPF app and since I did that, the app will not exit. I added the Sprocket window to a tab - viz works great - but now, calling “this.Close()” in the OK button doesn’t kill the app and neither does the “Red X” - I didn’t write a handler for that - but the window disappears. There are a bunch of threads running, but I can’t seem to kill them. I called _exithandler.Shutdown(), etc, but still. What am I supposed to be doing to clean up after myself and get the app to close? I can’t just leave an app running in the background.

BTW, I tried doing App.Current.Kill() and all of those with no luck, either. Taskman can kill it, and Taskkill can as well, but that’s it. This is a showstopper for me, so any help would be greatly appreciated.

thanks!

  • David

Hello David,

I suspect this is a WPF issue. Have you tried this:

  1. Why does my C# WPF program keep executing lines after Application.Shutdown()? - Stack Overflow
  2. c# - WPF App Doesn't Shut Down When Closing Main Window - Stack Overflow

If the above does not work, are you able to upload a sample application to
https://transfer.techsoft3d.com. Please email me the link at simon@techsoft3d.com.

Thank you.