I have a WPF application that, when needed, starts a separate update application and then attempts to close itself down using
Application.Current.Shutdown(). This used to work fine. Now it doesn't.
I don't know when this problem started because it's a while since I have had cause to exercise this code (yes, I know, slapped hands for me!).
Does anyone have any idea why this function should now appear to do absolutely nothing at all as far as I can tell?
Any ideas would be welcome.
Kind wishes - Patrick
What I have tried:
I have tried looking at the threads in Process Explorer and the main thread seems to have no other threads running, either foreground or background.
Environment.Exit() does kill the application but apparently is a bit 'rude'.