Closed daveford closed 5 years ago
From your stacktrace, several things :
The crash come from the MasterDetailPageRenderer but you dont have a master detail page in your code example. A part from your example is missing.
The culprit seem to be the update method which is called aynchronously with a handler post so I think the issue is similar to this one.
It's from XamarinForms so the right place to summit the issue is here .
I am getting a System.ObjectDisposedException from Xamarin code. I have not been able to have any of my code break when the error is thrown.
My Code
From my Menu
From my RootPage
Logout Page code behind
Login Page Code behind
Custom button renderer
Steps to Reproduce
await this.root.NavigateAsync(((HomeMenuItem)e.SelectedItem).MenuType);
The I can step my code through until it creates the custom buttons and executes theOnElementChanged
function for all buttons on the Login screen. After the 4th button executes theOnElementChanged
method, the error is thrown.Expected Behavior
The expected behavior is that the Login screen is set as the current screen.
Actual Behavior
Before the Login screen is displayed the app crashes.
Version Information
Xamarin.Forms v4.0.0.8055-pre1
Log File