如果在方法Application_Deactivated()中编写一个无限循环,然后发送回后台,则会发生什么情况 [英] what happen, if write an infinite loop in the method Application_Deactivated(), sent to background and back

查看:123
本文介绍了如果在方法Application_Deactivated()中编写一个无限循环,然后发送回后台,则会发生什么情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果编写以下app.xaml.cs方法,则将应用程序发送到后台,然后再发送回去.
会发生什么?为什么?

If write the following method of app.xaml.cs, sent the app to background and then back.
what could happen? Why?

private void Application_Deactivated(object sender, DeactivatedEventArgs e)
 {
     Debug.WriteLine("Application_Deactivated");
     Int64 i = 0;
     while (true)
     {
         Debug.WriteLine("{0}", i++);
     }
     PhoneApplicationService.Current.State["LeftTime"] = DateTime.Now;
 }

推荐答案

在删除您的问题和给您一个聪明的回答之间,我感到很痛苦.也许只是告诉您,这会让您对我对问题质量的理解有所了解.
I''m torn between deleting your question and giving you a smart-ass response. Maybe just telling you that will give you an idea of my interpretation of the quality of your question.


这篇关于如果在方法Application_Deactivated()中编写一个无限循环,然后发送回后台,则会发生什么情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆