Terminating

“Terminating” sounds bad, but it’s not. Unlike killing, it’s the graceful way for an app to enter the not running state. Whereas killing covers all the ways in which a running app suddenly stops running, termination can happen only to an app that is successfully suspended.

Windows tries to keep as many suspended apps in memory as possible, but when memory is tight (or the user is signing out), it must start terminating. There is no notification for this. After all, the terminated app isn’t running at the time! That’s okay, because each app should have prepared for this when it was being suspended. Because of this, you should think about termination as a “deeper” suspension, almost like putting Windows itself in hibernation mode rather ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.