Xamarin - After updating to current 5.9 (431) creating ActivityElement (current MonoTouch.Dialog) fails

46 views Asked by At

knFollowing code will result in an NULL exception, after updating the Xamarin environment and recompiling the whole code.

Here is a code fragment:

public override void ViewDidLoad ()
{
    base.ViewDidLoad ();

    //Test beginning
    ActivityElement element = new ActivityElement ();
    if (element == null)
        Console.WriteLine ("element == null");  
    element.Animating = true;
    //Test ending

    Section section = new Section ("Connecting...".t()) {
      new ActivityElement() {Animating = true} 
    };

I added the test section, because of the error on assigning true to element.Animating.

Debugging this code: Every member of element is after the "new ActivityElement" creation NULL, so assigning true to element.Animating results in an error, but element itself is not NULL.

I don't know why. Why are the member NULL? The whole app runs without any problem. Any suggestion?

Thx a lot!

0

There are 0 answers