Alan Quatermain

The Tumblog of one Jim Dovey, iOS Software Chief Architect at Kobo in Toronto, Ontario.
He Twitters, he has an , and can occasionally be found on LinkedIn or Facebook.
If you have a query, you can ask it here.

This blog contains personal opinions, and is not endorsed by any company.

441445888

Why I hate tail-call optimizations

Error message:

2010-03-11 11:51:56.632 Kobov3[86857:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFArray insertObject:atIndex:]: attempt to insert nil'

Backtrace:

#0  0x02de2de4 in ___TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION___ ()
#1  0x90da8509 in objc_exception_throw ()
#2  0x00117046 in __NSThreadPerformPerform ()
#3  0x02d325fa in CFRunLoopRunSpecific ()
#4  0x02d32048 in CFRunLoopRunInMode ()
#5  0x032fa89d in GSEventRunModal ()
#6  0x032fa962 in GSEventRun ()
#7  0x0038fae5 in UIApplicationMain ()

Neither -[NSArray insertObject:atIndex:] nor any of my code is in the stack backtrace. Well, that’s helpful.

*sigh*

1 note

  1. quatermain posted this