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 -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -