C
C#2y ago
Elmishh

✅ telling a console app to exit

how do i tell a console app to stop and close the window?
4 Replies
Pobiega
Pobiega2y ago
ideally you return; from main, but sometimes tahts hard. so then you Environment.Exit()
Elmishh
ElmishhOP2y ago
yeah i tried Enviroment.Exit() but it just stops it, the window doesnt close and my pc fans start going insane like theres some loop that puts stress on my pc
Pobiega
Pobiega2y ago
thats... weird
Elmishh
ElmishhOP2y ago
ok i fixed the first issue but how do i make it close the window
Want results from more Discord servers?
Add your server