Code Monkey home page Code Monkey logo

Comments (10)

JerryNixon avatar JerryNixon commented on May 24, 2024

How are you hitting Back without a Back button?

from template10.

plettb avatar plettb commented on May 24, 2024

With the Windows key combination.

from template10.

JerryNixon avatar JerryNixon commented on May 24, 2024

With Windows+BackSpace and hardware keys on your keyboard?

from template10.

plettb avatar plettb commented on May 24, 2024

Sorry - I should have been more clear. [Alt][Left Arrow].

from template10.

plettb avatar plettb commented on May 24, 2024

I take it, by the title change, that you've been able to reproduce this problem? If not, it's now even easier than before. If I download a completely clean copy of this solution (which, I'm delighted to say, now builds and doesn't appear to be missing files :-), use "Minimal" as my startup project, enter a value and go to page 2, close the app, open the app again, and click "Back", I get the crash.

from template10.

JerryNixon avatar JerryNixon commented on May 24, 2024

You and I are equally delighted :) That being said, yes. This is clearly a problem. There was a race condition that was occurring. It might be resolved today. The good news is, this is not a crippling bug at this moment, developers can start to investigate the template without this coming up in most use cases. I sincerely appreciate you finding this bug for us. It would have taken a while before we got around to testing this behavior. Now we can fix it right away.

The fix will include a few things. The first is moving all the state logic out of the NavigationService and into the FrameFacade. This is just a logic move so that state for a frame is part of the frame. Just made sense. Then, there is the issue of the race condition. Changing the direct reference to the container to wrapped Setters is the start of the fix. The rest of the fix, honestly, is still being written so I can’t tell you more because there isn’t more yet. When it is all said and done, any developer using the template won’t even notice that we’ve made a chance :) That’s the goal.

From: plettb [mailto:[email protected]]
Sent: Friday, July 17, 2015 12:08 PM
To: Windows-XAML/Template10
Cc: Jerry Nixon
Subject: Re: [Template10] Crash because of State Container (#8)

I take it, by the title change, that you've been able to reproduce this problem? If not, it's now even easier than before. If I download a completely clean copy of this solution (which, I'm delighted to say, now builds and doesn't appear to be missing files :-), use "Minimal" as my startup project, enter a value and go to page 2, close the app, open the app again, and click "Back", I get the crash.


Reply to this email directly or view it on GitHub #8 (comment) .

from template10.

plettb avatar plettb commented on May 24, 2024

I look forward to the fix. :-) (I'd gladly help, but I can't keep up with my OWN code, let alone help with this.)

By the way, I also get an exception any time I close the "Sample" app, but I'm guessing that's unrelated and I should add another issue about it. Unfortunately, as I alluded to, I just don't have nearly as much time for this kind of thing as I'd like!

from template10.

darenm avatar darenm commented on May 24, 2024

I have noted occasional instability in the state code when exiting apps - I'll keep an eye out for the culprit (it may be a timing issue...)

from template10.

JerryNixon avatar JerryNixon commented on May 24, 2024

I am going to leave this issue open until we can be confident that this has been resolved. I feel it has been, but I feel it has been resolved through general refactoring that has occurred not through a deliberate fix. So it feels right, but we can confirm it if it remains stable for the next little while.

from template10.

JerryNixon avatar JerryNixon commented on May 24, 2024

Okay, I am confident now. I've tested your scenario and several others.

from template10.

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.