Using SFChart and SfDateTimeRangeNavigator causes System.ObjectDisposedException

Edit:


I have attached a sample Xamarin project to highlight the issue I am experiencing.

Using the SfDateTimeRangeNavigator with SFChart causes the following problem

System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Android.Graphics.RectF'.

Reproduction steps

1. Run the App
2. Click on the range navigator, the exception will occur

Note:
The exception may not initially occur, but if you switch tabs (From Graph, TAB2) multiple times it should occur
This occurs on both Nexus 5 API 22 (Emulated) and Pixel (API 25)


If you comment out line 82 of GraphFragment.cs (Stopping the data loading into the chart), the navigator works as expected.


Attachment: ChartSample_9fc17fc3.zip

1 Reply

DV Divya Venkatesan Syncfusion Team May 11, 2018 03:35 AM UTC

Hi Kevin,

Sorry for the inconvenience caused.

We are able to reproduce the ObjectDisposedException in SfDateTimeRangeNavigator which is thrown when some disposed objects are accessed in fragment and we have logged a defect report. The fix for the reported issue will be available in our 2018 Volume 2 release which is expected to be rolled out at the end of May 2018.

Regards,
Divya Venkatesan
 


Loader.
Up arrow icon