[AD] Fixed crash in AL5 git dialog

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Just run any of the examples where an abort happens on iOS. Happens because display stored in TLS, so it can't get the view.

Seems to be a common problem with updating to Xcode 4.5 (4.4?). Seems to happen with iOS 5.1 and 6.

https://www.allegro.cc/forums/thread/611890

Solution was to get the display and view on the thread that created them and pass them to the main thread. 

Patch attached.

BQ

Attachment: ios_dialog_patch.diff
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/