This is a mirror of official site: http://jasper-net.blogspot.com/

Quick tip: Killing a Metro-style app in Windows 8

| Tuesday, September 27, 2011
Metro-style apps are very similar to Windows Phone apps. They have a similar application model (for example they can be suspended, and when suspended they can be killed by the operating system if memory is needed), so they need to maintain state. Also, and that is the topic of this post, they cannot be ended by the user in a “normal” way, i.e. there is no File / Exit menu and no “X” button in the corner. Once started, the application remains in memory until the following happens:

    The app is in suspended mode (not in the foreground) and the system needs to reclaim the RAM.
    The advanced user starts the Task manager, locates the application and kills the process.

Note: Unfortunately I cannot illustrate this with a picture, because my Task Manager refuses to run more than 2 seconds for some unknown reason. Windows 8 is a preview release (TM).

However sometimes you need to kill a Metro style app, because Visual Studio will refuse to start a second instance if the first one is still running. You will get an error message like the following:

6182342117_948116c5f9_b_d.jpg


Read more: Laurent Bugnion (GalaSoft)
QR: quick-tip-killing-a-metro-style-app-in-windows-8.aspx

Posted via email from Jasper-net

0 comments: