Coder Social home page Coder Social logo

Comments (9)

horacehylee avatar horacehylee commented on August 11, 2024

+1 Anyone??

from slideoverkit.

jessejiang0214 avatar jessejiang0214 commented on August 11, 2024

Would you please give us some sample to reproduce that?
Or you can use try-catch should fix that.

from slideoverkit.

chrismcb avatar chrismcb commented on August 11, 2024

I can try to build a sample.
But where are we supposed to put a try catch? The call that is crashing isn't caused my my code.

from slideoverkit.

jessejiang0214 avatar jessejiang0214 commented on August 11, 2024

Ok, please give us a sample code, it will help a lot

from slideoverkit.

nikita-toropov avatar nikita-toropov commented on August 11, 2024

I have the same problem. Any solution?

from slideoverkit.

Beelphegor avatar Beelphegor commented on August 11, 2024

Having the same problem :(

from slideoverkit.

ChasakisD avatar ChasakisD commented on August 11, 2024

I think i figured the problem. Posted here https://forums.xamarin.com/discussion/85562/slideoverkit-cannot-access-a-disposed-object#latest

from slideoverkit.

chrismcb avatar chrismcb commented on August 11, 2024

I have tried to create a sample, but I can't repro the issue. Of course it doesn't happen to me all that often in our app either. But it is our number one crash in Xamarin Insights.
Chasakis, thanks for the comment but I don't think that is the issue that I'm seeing.

The crash that I am seeing happens when the menu is being closed, after an item is clicked on (and only when that item is Logout, which destroys the page the menu is on)
There is only one messaging center subscription, a global one, which is called on the click. We don't use a subscription to show the menu. And putting a try/except around the show won't do anything, as none of our code is on the stack any longer.
I am guessing that the _backgroundOverlay has been disposed when we trying to remove it from the view. I don't know if it is a timing issue or what the problem is

from slideoverkit.

sthewissen avatar sthewissen commented on August 11, 2024

Did anyone manage to tackle this? I'm also getting this error in this scenario:

  • Current App.MainPage has a slide menu on it (through the interface)
  • Item in slide menu swaps out the App.MainPage for another page with a slide menu (also through the interface)

This is causing the Object is disposed error on the following function in the renderer (on _pageRenderer):

void HideBackgroundOverlay()
{
    if (_backgroundOverlay != null)
    {
        _pageRenderer.RemoveView(_backgroundOverlay);
        _backgroundOverlay.Dispose();
        _backgroundOverlay = null;
    }
}

from slideoverkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.