C
C#11mo 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
Denis11mo ago
Try recreating this with a smaller and simpler example Does the issue reproduce?
Florian Voß
Florian Voß11mo 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
Accord11mo 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.
Want results from more Discord servers?
Add your server
More Posts
❔ New to C#, trying to create a gui that lets me start/stop my discord bot on a remote linux machineI am new to c#, but trying to learn. I have a simple gui with a start and stop button at the moment.❔ I can't fill my inputs when I click the "update" buttonIn order not to write it again, I am giving the stack overflow link. I will be grateful if you could❔ I don't know where to put handle error in my projectI use DDD in my project and this project makes CRUD. In infrastructure, there are a logic to call a ❔ Using XML to modify Nuget nuspec filesI am trying to take data from my old nuget packages nuspec file then I want to get the data from ea✅ Can't have interface with abstract static method as parameter in blazor componentI have interface and class like this: ```cs interface IFoo { static abstract IFoo Create(); void❔ Authentication on a ASP.NET application hosted on IISHi, I'm very new to deployment on IIS, and I'm very sure that it's just some configuration that isn'❔ newbie here. how to make combobox display values from 2d array 2nd column, and do nothing if null?this is visual studio windows form app combobox so i have a combobox called category. if i click the❔ Process Start with unicode charactersHello, I'm having issues with the following code to launch process when they are on directories wit❔ Uno using c# consolebasically as a school project we were asked to make a uno game code with certain rules, Me and my te❔ newbie here. how to check for duplicate string vs a combobox list?im not too sure how to write this. so from combobox textbox i should be able to write something e.g.