Crash related to UITableViewController / UISearchDisplayController in MonoTouch/Xamarin.iOS -


i'm having problem find cause of random crashes in app. crashes occurs when build in release mode , run on device iphone or ipad. running in debug on simulator no crashes occurs. guess problem has these 2 lines in crash log,

6   uikit                           0x34a193d0 -[uisearchdisplaycontroller _destroymanagedtableview] + 68 7   uikit                           0x34a2195a -[uisearchdisplaycontroller dealloc] + 94 

i've uploaded source code of uitableviewcontroller , full crash log here, https://gist.github.com/nordis/6128735

all track cause of crashes appreciated!

update

i've crated bug report, looked , thread rolf suggested in comments. downloaded test case, applied fix. still same crash , stack trace similar mine looks like.

https://bugzilla.xamarin.com/show_bug.cgi?id=13703

the solution provided rolf @ xamarin simple, had move code dispose() viewdiddisappear() in uitableviewcontroller,

public override void viewdiddisappear (bool animated) {     searchcontroller.searchresultssource = null;     searchcontroller.delegate = null;      base.viewdiddisappear (animated); } 

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -