Cannot access a disposed object.

I have a example similar to SampleBrowser demo. I try this exception. System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Java.Util.GregorianCalendar'.
  at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <a08520e2f4424bc6aab574299084b385>:0
  at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <a08520e2f4424bc6aab574299084b385>:0
  at Java.Util.Calendar.Clone () [0x0000a] in <46c5c71eacdc488bb6b4b2ba91dd3b0e>:0
  at Com.Syncfusion.Schedule.SfSchedule.AllowVisibleDatesChangedEvent (System.Collections.ObjectModel.ObservableCollection`1[T] newCalendarValues) [0x00029] in <349ebc0b8cff4853b6e3bb256ad45cf9>:0
  at Com.Syncfusion.Schedule.SfSchedule.OnMeasure (System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x0014a] in <349ebc0b8cff4853b6e3bb256ad45cf9>:0
  at Android.Views.View.n_OnMeasure_II (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 widthMeasureSpec, System.Int32 heightMeasureSpec) [0x00009] in <46c5c71eacdc488bb6b4b2ba91dd3b0e>:0
  at (wrapper dynamic-method) System.Object.73(intptr,intptr,int,int)


3 Replies

VR Vigneshkumar Ramasamy Syncfusion Team August 22, 2018 03:29 PM UTC

Hi Andrés Giménez,  
  
Thanks for using Syncfusion products,  
  
We have already found and fixed the similar issue “Cannot access a disposed object” exception and included this fix in our Volume 2 SP 1 release. We suspect that you are using an old version of our product. Please update to our latest Volume 2 SP1, even after if you are getting this exception please provide further details and replication procedure which helps us to analyze more about the issue and provide the better solution.  
 
Regards,  
Vigneshkumar R 



AG Andrés Giménez August 24, 2018 01:36 PM UTC

I use the v16.2.0.46 that is in NuGet. Isn't that the last?


VR Vigneshkumar Ramasamy Syncfusion Team August 27, 2018 10:11 AM UTC

Hi Andrés Giménez,   
 
Yes, it is our latest version (v16.2.0.46). As we mentioned in our previous update, we are unable to reproduce the issue "Cannot access a disposed object". Could you please modify the below provided sample to reproduce the mentioned issue or else provide us more information about the scenario and replication procedure to reproduce it? So that, it will be helpful for us to analyze and provide you better solution.  
  
Sample: ScheduleAndroid  
  
Regards,  
Vigneshkumar R 


Loader.
Up arrow icon