Closed JulesMoorhouse closed 3 years ago
This is mostly caused by a bad known behavior of the MONO debugger, which likes to dispose objects it does not own, or leaves the context before the breakpoint really occurs, or if you enabled the linker.
It is not caused by XamSvg.
I'd just like to take this opportunity to thank you for you're work on XamSvg, it's awesome.
Oh I hadn't thought the Mono debugger was used for iOS.
We have had similar issues with our own platform code, but I think this has been exclusively for Android. In these scenarios simply adding an Overide and the super base call, swallow the error.
Obviously this isn't something we can add to XamSvg, is this something you could add ? Or have you any other ideas how to silence the error, without disabling the linker..
Thanks in advance!!
simply adding an Overide and the super base call, swallow the error
Which method are you overriding ?
I think these are similar issues...
https://github.com/xamarin/Xamarin.Forms/issues/12059 https://github.com/xamarin/Xamarin.Forms/issues/12044
In this case we added ...
public CustomTimePickerRenderer(IntPtr handle, JniHandleOwnership transfer)
But as I say this was for Android
Oh ok, all the "invisible" but required constructors are already present, on both iOS and Android.
So what now? can you add something. Or can we ?
Thanks.
The last time i saw this issue is when i was using xamsvg in a collectionview's item, and i was changing to another page. Xamarin Forms incorrectly asynchronously updates the collection view items that are in a collectionview which is disposed or detached from its parent.
I know it's hard to believe, but it's not an issue with the Svg component.
I fixed it by making sure the page is attached to its parent before it is displayed. Note that you can update to Xamarin Forms 5 too to fix the issue, as the Forms team fixed this issue with collection views.
How do I attach a page to it’s parent ?
Don't mind, it's fixed now.
I'm getting an error when using XamSvg, it occurs when I have the
System.Exception
breakpoint enabled. Whereas previously the error didn't occur. I'm not sure whats changed.I'm using VS for Mac 2019 8.8.5 Vapolia.XamSvg.Forms 3.1.8 Xamarin.Forms 5.8.0.1451
The full error is...
Any ideas ?