none
Tapped and DoubleTapped event keep crash RRS feed

  • 问题

  • I am trying to add a handler to Tapped event and DoubleTapped event of an MediaElement, But every time I run the application and click the mouse, the app will crash. Can anyone give me some hints?

    Below is my Codes:

    Add event handler at Constructor of BlankPage:

    OutPutVideo->Tapped += ref new Windows::UI::Xaml::Input::TappedEventHandler(this, &BlankPage::OnTapped);

    Event Handler, Actually, I did nothing:

    void VideoPlayer::BlankPage::OnTapped(Platform::Object^ sender, Windows::UI::Xaml::Input::TappedRoutedEventArgs^ e)
    {

    }

    And also, I try to add the event handler at BlankPage.xaml, the behavior is same as above.

    Thanks

    2012年5月29日 14:19

全部回复

  • This is crash snapshot

    2012年5月29日 14:23
  • A first chance exception, try to Ignore it, and check if it can continue.

    From the screenshot, it is one stack overflow exception, could you please check the call stack list in this exception, that can show you the called mthods in this action, and let us know if there are many many methods are called which  are not controlled by yourself.

    And also, try to test with different machines.

    Sincerely,


    Bob Bao [MSFT]
    MSDN Community Support | Feedback to us

    2012年5月30日 4:56
    版主