locked
My 8.1 app crashes when I double tap/click an item in a grid

All replies

  • Try this...

    private void Catastrophe(object sender, DoubleTappedRoutedEventArgs e)
            {
                try
                {
                    gv.Visibility = Visibility.Collapsed;
                    var newItems = items.Shuffle();
                    CVS.Source = null;
    
                    CVS.Source = newItems;
                    gv.Visibility = Visibility.Visible;
                }
                catch (Exception ex) { }
            }

    Tuesday, April 28, 2015 10:06 PM
  • I'm currently working around it with gv.IsEnabled=false/true which at least doesn't cause a re-layout and flickering like your solution does.

    Would you really ship your solution in a product?

    Anthony Wieser | Wieser Software Ltd | www.wieser-software.com

    Wednesday, April 29, 2015 5:15 AM
  • No, I wouldn't. It's a band-aid.

    IsEnabled also works. 

    I've spent long hours coming up with ways to go around problems like this one.  It's a bug in the system.

    Added by edit.

    On a different note, why not?  With all the crap that are being published to the winstore with little to no quality control, I don't think anyone would notice.  Those of us who still value quality over quantity are falling behind times.  We now live in the era of just-barely-good-enough.

    • Edited by RandyPete Wednesday, April 29, 2015 1:27 PM
    Wednesday, April 29, 2015 1:15 PM
  • well, I agree with your final sentiments, that's for sure.  Just barely good enough.  Usually no.

    And after all, almost no-one's ever going to run it either based current store uptake.  Hopefully //build has some good news. 


    Anthony Wieser | Wieser Software Ltd | www.wieser-software.com

    Wednesday, April 29, 2015 4:04 PM
  • FWIW, I couldn't get it to crash on Windows 10 build 10061.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, April 29, 2015 4:57 PM
    Moderator
  • That's possibly encouraging Matt. 

    How fast is your machine though?  I think it's worse on slower machines

    Does it still work in the app simulator?

    And when will everyone have W10?! ;)


    Anthony Wieser | Wieser Software Ltd | www.wieser-software.com

    Wednesday, April 29, 2015 5:04 PM
  • Plenty fast.  How slow do you need it to be?  I didn't test on the simulator.

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, April 30, 2015 1:02 AM
    Moderator
  • My dev machine is a 2 core T5500 1.67 Ghz machine, 32 bit.  The target machine is a Linx 7 tablet.

    Update: Further investigation on the table shows that it only happens with a mouse double click.  I can't seem to break it tapping.


    Anthony Wieser | Wieser Software Ltd | www.wieser-software.com


    Thursday, April 30, 2015 5:35 AM
  • I'm surprised you guys are delving more into this. I've been observing this behavior since the beginning and just accepted it as normal and found workarounds.
    Thursday, April 30, 2015 1:10 PM