停用后是否强制应用程序逻辑删除? [英] Force app to tombstone upon Deactivation ?

查看:55
本文介绍了停用后是否强制应用程序逻辑删除?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

停用我的应用程序时,它上的打开的套接字没有关闭.它们是在应用程序被逻辑删除时,因此使其正常工作的唯一方法是强制应用程序在停用时崩溃(通过引发异常).

When my app is Deactivated, the open sockets on it are not closed. They are when the app is tombstoned, so the only way to make it work was force the app to crash on Deactivation (by throwing an exception).

在停用时调用在套接字上进行处置也不起作用.

Calling dispose on the sockets at deactivation does not work either. 

我不担心应用程序崩溃或通过认证,但是我仍然想找到一种更干净的方法来清除停用时的套接字...

I have no concerns about the app crashing or passing certification, but I'd still like to find a more clean way to clear the sockets on deactivation...

推荐答案

其中的套接字"你指的是什么?您是否可以控制应用程序中的底层套接字句柄(换句话说,是您自己实现套接字功能,还是正在使用更高级别的功能,例如HTTP类?)?
Which "sockets" are you referring to? Do you have control over the underlying socket handles in your app - in other words do you implement Socket functionality yourself or are you using higher level functionality - such as HTTP classes?


这篇关于停用后是否强制应用程序逻辑删除?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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