Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (1.4.2)
Viewing all articles
Browse latest Browse all 19

iPhone Crashes If Current Window is Closed Too Quickly

$
0
0

I have an iPhone app with a window that fires a custom event that kicks off a DB query, collects data from the result set, iterates over the collected data and creates a view from the data, adding it to the current window. The problem I'm running into is that the app will crash if the window is closed before the looping over the collected data is completed.

I'm logging progress during the loop, so I know the crash isn't occurring during the DB interaction. I've tried adding event listeners to the current window's close and blur events to "short circuit" the loop, but they don't seem to fire in time.

I'm guessing this might be a thread safety problem? Does anyone have any ideas? Thanks.


Viewing all articles
Browse latest Browse all 19

Latest Images

Trending Articles





Latest Images