lilcodelab / Xamarin.Plugin.Calendar

Calendar plugin for Xamarin.Forms
MIT License
260 stars 60 forks source link

[Bug] System.InvalidOperationException Message=Handle is not initialized. #126

Open pabloat81 opened 2 years ago

pabloat81 commented 2 years ago

Describe the bug I copied the advancedPage from the example code.

I added a new/edit page, a event view page and navigation.

Navigating between pages works fine, but when i go with the back button to a section previus to the "advanced calendar example page" and enter again i am geting this exception:

System.InvalidOperationException HResult=0x80131509 Message=Handle is not initialized. Source=System.Private.CoreLib StackTrace: at System.WeakReference1.set_Target(T value) at Xamarin.Forms.BindingExpression.WeakPropertyChangedProxy.Unsubscribe() at Xamarin.Forms.Internals.TypedBinding2.Unsubscribe() at Xamarin.Forms.Internals.TypedBinding`2.Unapply(Boolean fromBindingContextChanged) at Xamarin.Forms.BindableObject.ApplyBindings(Boolean skipBindingContext, Boolean fromBindingContextChanged) at Xamarin.Forms.BindableObject.BindingContextPropertyChanged(BindableObject bindable, Object oldvalue, Object newvalue) at Xamarin.Forms.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, Boolean silent) at Xamarin.Forms.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes) at Xamarin.Forms.BindableObject.SetValue(BindableProperty property, Object value, Boolean fromStyle, Boolean checkAccess) at Xamarin.Plugin.Calendar.Controls.MonthDaysView.DiposeDayViews() at Xamarin.Plugin.Calendar.Controls.MonthDaysView.Finalize()

To Reproduce Steps to reproduce the behavior: Dont have an example code

Version information: