when I reset the image, the control generates a fatal error.
System.ObjectDisposedException: 'Cannot access a disposed object. Object name: 'Android.Graphics.Bitmap'.'
attached image used
true, it happens to me only with images of that type (white image), previously generated by the same control.
thanks...
I installed version 57 but the problem persists ...
Hi Marco Salvatori,
We have prepared a sample with the provided image and checked the reported problem with Syncfusion version 19.3.0.57. But we are not able to reproduce the reported problem on our side. Can you please check with the sample from the attachment? If still, you face the problem, please revert us by modifying the sample based on your application along with the replication procedure. This would be helpful for us to give a better solution to this. Also, clear the NuGet cache as per below KB.
KB Link: https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache
Note: We have tested the sample in Android versions 8 and 11.
Regards,
Ragul S V.
we replicated the code within our APP and the error occurs.
Android 11
at this point, could it be some incompatibility with other nuget packages?
xamarin forms is up to date.
problem that occurs only with images created with your control.
if it can help..
if i insert this istruction
private void PhotoEditor_BeginReset(object sender, BeginResetEventArgs args)
{
args.Cancel = true; //It restricts resetting image to initial loaded image.
}
error disappear but 'reset' not work...
my actual workaround is insert this code:
private void PhotoEditor_BeginReset(object sender, BeginResetEventArgs args)
{
args.Cancel = true; //It restricts resetting image to initial loaded image.
PhotoEditor.Source = null;
PhotoEditor.Source = imageSource;
}