We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Binding ScheduleView leads to error on Android

Hello,

i'm trying to use a binding for ScheduleView in my Xamarin.Forms app using Prism.

On loading my page i set set ScheduleView to WeekView in my Viewmodel 

This used to work in Version 16.1.0.37 but after updating to 16.4.0.48 when i hit the BackButton on Android i get this error message and my app crashes:

02-25 08:43:59.279 I/MonoDroid( 2729): UNHANDLED EXCEPTION:
02-25 08:43:59.282 D/Mono    ( 2729): Assembly Ref addref Mono.Android[0x9cc6e060] -> System.Runtime.Serialization[0x9b584220]: 3
02-25 08:43:59.283 I/MonoDroid( 2729): System.ObjectDisposedException: Cannot access a disposed object.
02-25 08:43:59.283 I/MonoDroid( 2729): Object name: 'Com.Syncfusion.Schedule.ParentDayLayout'.
02-25 08:43:59.283 I/MonoDroid( 2729):   at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <286213b9e14c442ba8d8d94cc9dbec8e>:0 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualVoidMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <286213b9e14c442ba8d8d94cc9dbec8e>:0 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Android.Views.ViewGroup.RemoveAllViews () [0x0000a] in <95d915721ad748108ff096dce8f8f32c>:0 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Com.Syncfusion.Schedule.SfSchedule.Dispose (System.Boolean disposing) [0x00161] in <495d55d49a6e400580f2348e493dd9f7>:0 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Java.Lang.Object.Dispose () [0x00000] in <95d915721ad748108ff096dce8f8f32c>:0 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x000a6] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:297 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Xamarin.Forms.Platform.Android.ViewRenderer`2[TView,TNativeView].Dispose (System.Boolean disposing) [0x00031] in D:\a\1\s\Xamarin.Forms.Platform.Android\ViewRenderer.cs:147 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Syncfusion.SfSchedule.XForms.Android.SfScheduleRenderer.Dispose (System.Boolean disposing) [0x00023] in <deb0b275605f4cc89d0f87f104bce777>:0 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Java.Lang.Object.Dispose () [0x00000] in <95d915721ad748108ff096dce8f8f32c>:0 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x000a6] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:297 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Xamarin.Forms.Platform.Android.Platform+DefaultRenderer.Dispose (System.Boolean disposing) [0x0000a] in D:\a\1\s\Xamarin.Forms.Platform.Android\Platform.cs:1280 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Java.Lang.Object.Dispose () [0x00000] in <95d915721ad748108ff096dce8f8f32c>:0 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Dispose (System.Boolean disposing) [0x000a6] in D:\a\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:297 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Xamarin.Forms.Platform.Android.PageRenderer.Dispose (System.Boolean disposing) [0x00011] in D:\a\1\s\Xamarin.Forms.Platform.Android\Renderers\PageRenderer.cs:34 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Java.Lang.Object.Dispose () [0x00000] in <95d915721ad748108ff096dce8f8f32c>:0 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Xamarin.Forms.Platform.Android.AppCompat.FragmentContainer.OnDestroyView () [0x0003c] in D:\a\1\s\Xamarin.Forms.Platform.Android\AppCompat\FragmentContainer.cs:80 
02-25 08:43:59.283 I/MonoDroid( 2729):   at Android.Support.V4.App.Fragment.n_OnDestroyView (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <96541ba8a6104b52aadf4218488f978c>:0 
02-25 08:43:59.283 I/MonoDroid( 2729):   at (wrapper dynamic-method) System.Object.51(intptr,intptr)

I don't get this messag when i set the ScheduleView to DayView.

Regards,
  Kalle



2 Replies

AS Arun siva Syncfusion Team February 26, 2019 03:10 PM UTC

Hi Kalle, 
 
Thank you for contacting Syncfusion support. 
 
Currently, we are analyzing the reported issue “ObjectDisposed exception throws while come back from schedule week view and binding using prism” and we will update you for this on or before 28th February 2019. We appreciate your patience until then. 
 
Regards, 
Arun Siva R 



SP Subburaj Pandian Veluchamy Syncfusion Team March 1, 2019 10:05 AM UTC

Hi Kalle, 
  
Thank you for your patience. 
  
We have created new incident under your account to track the status of this issue “ObjectDisposed exception throws while come back from schedule week view and binding using prism” in Xamarin.Forms. Please log on to our support website and follow-up with the incident for the further updates. 
  
 
Regards,
Subburaj Pandian V 


Loader.
Live Chat Icon For mobile
Up arrow icon