在后台运行然后进入ForeGround时,应用程序崩溃 [英] Application Crashing when going in Background and then ForeGround

查看:126
本文介绍了在后台运行然后进入ForeGround时,应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在UIView中有一个按钮.单击此按钮时,将启动对服务器的命中.在此期间,如果我们强制应用程序在后台运行.然后回到前台应用程序崩溃.

我收到的日志是:-

I have a button in the UIView. when This button is clicked a hit to the server is initiated. During this time, if we force the application to go in Background. and then coming back to Foreground The application Crashes.

The Log i have received is :-

Jun 26 18:41:26 unknown SpringBoard[50] <Warning>: JAYPORE failed to resume in time
Jun 26 18:41:26 unknown SpringBoard[50] <Warning>: Forcing crash report of JAYPORE[1323]...
Jun 26 18:41:26 unknown SpringBoard[50] <Warning>: Finished crash reporting.
Jun 26 18:41:26 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:JAYPORE[0xcbe2]) Exited: Killed: 9
Jun 26 18:41:26 unknown SpringBoard[50] <Warning>: Application ''JAYPORE'' exited abnormally with signal 9: Killed: 9
Jun 26 18:41:27 unknown ReportCrash[1335] <Notice>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/JAYPORE_2012-06-26-184126_Sameers-iPad.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0



我为此进行了谷歌搜索,但没有成功.

我有一个Timer,它可以将对服务器的命中延迟1毫秒.那是因为我们显示了一个进度指示器,该延迟指示器在服务器命中被延迟时有效.

在此先感谢您的支持...



I have googling for this but with no success.

I have a Timer which delays the hit to server for 1ms Thats because we show a progress indicator which works when the server hit is delayed.

Thanks in Advance for the support...

推荐答案

我想我需要检查单击按钮时运行的代码.如果正在实例化一个新线程,那可能是个问题.查看您的代码后,我可以提供更多帮助,请在此处发布您的代码.
I guess I will need to check the code which runs when you click on the button. If it is instantiating a new thread then that can be problem. I can help more after looking at your code so please post your code here.


这篇关于在后台运行然后进入ForeGround时,应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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