WP8内存不足,墓碑时存储状态失败怎么办?
应用程序向手机新增联系人,当增加的联系人超过1000时,会引发异常,具体操作为:(增加联系人是个异步方法, 在增加过程中更新进度条)增加联系人时按home键休眠或墓碑程序,然后再返回时回报异常:
【message】 "State saving failed. This is most likely due to insufficient State buffer capacity. App requires [3342315] bytes which likely exceeds NavServer limit"
【source】 "Microsoft.Phone.Interop"
【stacktrace】 "at Microsoft.Phone.TaskModel.Interop.Task.SaveTaskState()
at Microsoft.Phone.TaskModel.Interop.Task.FireOnPause(UInt32 reason)"
请问这是怎么造成的,该如何处理? 忘了发表情了