If I select a couple of days on the SfCalendar, go to another page (with a SfDataForm) and press the back button and repeat the process my app crashes. This only happens on Android. Attached is the code for my two Views.
It crashes in the following condition:
1. When ShowInlineEvents = true and the next page has a SfDataForm on
It doesn't crash when either ShowInlineEvents = false OR SfDataForm is removed OR if I didn't click on any days.
Here's my application output:
Unhandled Exception:
[mono] System.ObjectDisposedException: Cannot access a disposed object.
[mono] Object name: 'Com.Syncfusion.Calendar.InlineLayout'.
[mono] at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <09bf3e262b934ffab2ba01f9fc7fd54d>:0
[mono] at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualInt32Method (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <09bf3e262b934ffab2ba01f9fc7fd54d>:0
[mono] at Android.Views.ViewGroup.get_ChildCount () [0x0000a] in <25661073a35344a89f215a4cf81af37c>:0
[mono] at Com.Syncfusion.Calendar.InlineLayout.Dispose (System.Boolean disposing) [0x0007e] in <141bc1a5d8844d208d96a43459c4663a>:0
[mono] at Java.Lang.Object.Finalize () [0x00048] in <25661073a35344a89f215a4cf81af37c>:0
[mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: System.ObjectDisposedException: Cannot access a disposed object.
[mono-rt] Object name: 'Com.Syncfusion.Calendar.InlineLayout'.
[mono-rt] at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <09bf3e262b934ffab2ba01f9fc7fd54d>:0
[mono-rt] at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualInt32Method (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <09bf3e262b934ffab2ba01f9fc7fd54d>:0
[mono-rt] at Android.Views.ViewGroup.get_ChildCount () [0x0000a] in <25661073a35344a89f215a4cf81af37c>:0
[mono-rt] at Com.Syncfusion.Calendar.InlineLayout.Dispose (System.Boolean disposing) [0x0007e] in <141bc1a5d8844d208d96a43459c4663a>:0
[mono-rt] at Java.Lang.Object.Finalize () [0x00048] in <25661073a35344a89f215a4cf81af37c>:0
[] HostConnection::get() New Host Connection established 0x82b515c0, tid 32605
Attachment:
Views_14e4d7bb.zip