SOLVED (I think) Re: Building an iOS app that takes pictures, first time always crashes

Geoff Canyon gcanyon at
Wed Dec 11 09:41:45 EST 2013

I don't think I tried that, and I don't have that copy of the app on my iPhone anymore. 

But I do think I've solved it. I tried several things to slice the problem, but the key was that I wanted to see if the problem was the taking of the picture itself, or the post-processing I was doing. I was sizing the image to a 300x300 square and applying a circular mask. 

So I broke out that code into a new handler and called it with a delay of something like 15 ticks. Sure enough, the crash took a little longer to happen. So I changed it to 120 ticks, and so far, no crashes. No other code changed. So there's some sort of "wait a minute, the image isn't ready," aspect to the bug. And it's maybe some sort of initialization since once the problem goes away, it seems to be gone, unless I let the app sit for an hour or so. 

Sent from my iPhone

> On Dec 11, 2013, at 6:10 AM, Colin Holgate <coiin at> wrote:
> Does the caneling of the Answer dialog then give a new result, overwriting your initial result?

More information about the Use-livecode mailing list