C
C#17mo ago
Florian Voß

❔ Need help urgently with production app not behaving as expected

this issue is with a WPF app: App.ShutdownMode is equal to ShutdownMode.OnLastWindowClose. When I run and debug in Visual Studio it works as expected, upon closing the last window the app shuts down nicely. When I close a window while still having another window open, app keeps running as it should. in the published app this does not work as expected, closing any window other than the MainWindow causes the app to shutdown even when the MainWindow is still open, the opposite, closing mainwindow while having another window open does not shut down the app Anyone have a clue whats going on here?
3 Replies
Denis
Denis17mo ago
Try recreating this with a smaller and simpler example Does the issue reproduce?
Florian Voß
Florian VoßOP17mo ago
it doesn't get much smaller and simpler than it is I think. Its barely a couple of hundred of lines of code and they are well structured IMO, I have written them all myself. How exactly do I reproducse it in a smaller and simpler example? I only have like 4 different windows, one of them being the MainWindow following a clear MVVM pattern
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?