terminal/src/cascadia/WindowsTerminal
Mike Griese b6a21de802
Intentionally leak our Application, so that we DON'T crash on exit (#5629)
We've got a weird crash that happens terribly inconsistently, but pretty
readily on migrie's laptop, only in Debug mode. Apparently, there's some
weird ref-counting magic that goes on during teardown, and our
Application doesn't get closed quite right, which can cause us to crash
into the debugger. This of course, only happens on exit, and happens
somewhere in the `...XamlHost.dll` code.

Crazily, if we _manually leak the `Application`_ here, then the crash
doesn't happen. This doesn't matter, because we really want the
Application to live for _the entire lifetime of the process_, so the only
time when this object would actually need to get cleaned up is _during
exit_. So we can safely leak this `Application` object, and have it just
get cleaned up normally when our process exits.

* [x] I discussed this with @DHowett-MSFT and we both agree this is mental
* [x] I'm pretty sure there's not an actual bug on our repo for this
* [x] I verified on my machine where I can crash the terminal 100% of the time on exit in debug, this fixes it
* [x] I verified that it doesn't introduce a _new_ crash in Release on my machine
2020-04-30 14:36:02 -05:00
..
AppHost.cpp Intentionally leak our Application, so that we DON'T crash on exit (#5629) 2020-04-30 14:36:02 -05:00
AppHost.h Manually pass mouse wheel messages to TermControls (#5131) 2020-04-01 16:58:16 +00:00
BaseWindow.h Fix a bunch of spelling errors across the project (#4295) 2020-02-10 20:40:01 +00:00
IslandWindow.cpp Add and enforce minimum width (#5599) 2020-04-28 23:24:21 +00:00
IslandWindow.h Add and enforce minimum width (#5599) 2020-04-28 23:24:21 +00:00
main.cpp Re-enable Ctrl-C if the application that spawned us disabled it (#5472) 2020-04-23 08:00:42 -07:00
NonClientIslandWindow.cpp Remove a stray __stdcall that was breaking the x86 build (#5554) 2020-04-24 16:46:01 -07:00
NonClientIslandWindow.h Replace the HRGN-based titlebar cutout with an overlay window (#5485) 2020-04-24 15:22:40 -07:00
packages.config Make the window border actually follow the user's theme (#5105) 2020-03-24 19:47:01 +00:00
pch.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
pch.h Manually pass mouse wheel messages to TermControls (#5131) 2020-04-01 16:58:16 +00:00
resource.h Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
WindowsTerminal.def Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
WindowsTerminal.manifest TURNS OUT CASE SENSITIVITY IS IMPORTANT (#2481) 2019-08-20 11:16:06 -07:00
WindowsTerminal.rc Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
WindowsTerminal.vcxproj Bundle the entire CRT with our branded Release packages (#5661) 2020-04-30 07:08:43 +00:00
WindowUiaProvider.cpp Upgrade UiaProviders to WRL::ComPtr (#3051) 2019-11-21 16:08:37 -08:00
WindowUiaProvider.hpp Upgrade UiaProviders to WRL::ComPtr (#3051) 2019-11-21 16:08:37 -08:00