Re: iOS 6, VoIP, and -viewDidLoad
Re: iOS 6, VoIP, and -viewDidLoad
- Subject: Re: iOS 6, VoIP, and -viewDidLoad
- From: Fritz Anderson <email@hidden>
- Date: Thu, 20 Jun 2013 11:54:00 -0500
On 20 Jun 2013, at 11:20 AM, Michael Crawford <email@hidden> wrote:
> When iOS automatically restarts a VoIP app that has crashed or been removed by the watchdog for some reason, does -viewDidLoad run when the app is automatically restarted?
>
> I ask because when this type of restart occurs, it appears to happen silently, without presenting the restarted app's window in the foreground. Since this condition is kind of difficult to test or duplicate on my device, I though some of you might have experience with this behavior and could tell me what you observed.
>
> I am trying to trigger this behavior by allocating huge amounts of memory on a timer and then leaking it on purpose but so far, instead of getting a memory warning and then subsequently having the app evicted due to memory pressure, malloc simply returns nullptr. I've tried this with allocation units of 100 megabytes and then with 1 megabyte.
The watchdog shuts the app down peremptorily, without warning. I'd think you could get the same effect simply by calling abort(), perhaps in a background task.
— F
--
Fritz Anderson
Xcode 4 Unleashed: 4.5 supplement for free!
http://www.informit.com/store/xcode-4-unleashed-9780672333279
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden