c# - Xamarin Forms on iOS, while debugging elements turns to null -


i have xamarin forms app, works fine, on click events doesn't work, tried debug , noticed gui objects turned null, don't know why, tried compare null , re-initialize then, if-statement ignored mono! heck?

here class: http://pastebin.com/jdufj9sb

activityindicator turn null don't know when, when check on 224 line, , debugger shows null, if-statement doesn't run properly

you're using async method views initialization:

private async task load(profile profile) 

there're places call function (eg. line 70):

  • without await (so fire , forget)
  • without using device.begininvokeonmainthread. remember: all operations on ui must done ui thread.

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -