Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Cannot access a disposed object.Object name: 'Xamarin.Forms.Platform.Android.ImageRenderer'

$
0
0

Hi Everyone,

I have created a Xamarin.Forms application. In my application when I click on any button my app is crashing with exception Cannot access a disposed object.Object name: 'Xamarin.Forms.Platform.Android.ImageRenderer'. Here is the crash log

Message: Cannot access a disposed object.Object name: 'Xamarin.Forms.Platform.Android.ImageRenderer'.StackTrace: at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <2adcca1486484b3b977b571b94c7903a>:0 at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualInt32Method (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <2adcca1486484b3b977b571b94c7903a>:0 at Android.Views.View.get_Visibility () [0x0000a] in <c38061fd62ab40a98586383f36964d81>:0 at Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateIsVisible () [0x00035] in <fb1b373bb41f422cab210b1850374a59>:0 at Xamarin.Forms.Platform.Android.VisualElementTracker.HandlePropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x002dc] in <fb1b373bb41f422cab210b1850374a59>:0 at (wrapper delegate-invoke) <Module>.invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs) at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00012] in <42fe931976e64c199eddde45068a6c09>:0 at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in <42fe931976e64c199eddde45068a6c09>:0 at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.BindableObject+SetValueFlags attributes, System.Boolean silent) [0x000fb] in <42fe931976e64c199eddde45068a6c09>:0 at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.BindableObject+SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x0014b] in <42fe931976e64c199eddde45068a6c09>:0 at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x001f9] in <42fe931976e64c199eddde45068a6c09>:0 at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in <42fe931976e64c199eddde45068a6c09>:0 at Xamarin.Forms.BindingExpression+BindingExpressionPart.<PropertyChanged>b__47_0 () [0x00000] in <42fe931976e64c199eddde45068a6c09>:0 at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <c38061fd62ab40a98586383f36964d81>:0 at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <c38061fd62ab40a98586383f36964d81>:0 at (wrapper dynamic-method) System.Object.835897aa-40b8-46da-a402-79a92ebbf907(intptr,intptr)Method: ; AssertSelf

I am unable to figure out the exact reason. Is there any solution to fix it.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>