Note that there are some explanatory texts on larger screens.

plurals
  1. POApplication Exit unknowingly in Windows Phone
    primarykey
    data
    text
    <p>The <strong>application gets exit unknowingly with out catching the exception</strong>. We have implemented <strong>try catch functionality</strong> in the Application. I couldn't catch the exception in App unhandled exception.</p> <p>For example, we have sub menu screen in our application, while clicking on the sub menu content listing screen is displayed. But some times continuously working on sub menu screen, the application gets exit with out unknowingly. Kindly suggest.</p> <p>Sub menu page sample code: I have two stack panel and each having same set of codes for navigating to other pages.</p> <pre><code>private void stk_searchworkorder_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { try { (Application.Current.RootVisual as PhoneApplicationFrame).Navigate(new Uri("/MMS/WOSearch.xaml?History=false", UriKind.RelativeOrAbsolute)); } catch (System.Reflection.TargetException ex) { } catch (Exception ex) { MessageBox.Show("Unknown exception", app.glbExceptionTitle, MessageBoxButton.OK); } } private void stk_searchworkorder_MouseEnter(object sender, MouseEventArgs e) { try { SolidColorBrush br = new SolidColorBrush(Color.FromArgb(255, 40, 40, 40)); stk_searchworkorder.Background = br; } catch (System.Reflection.TargetException ex) { } catch (Exception ex) { MessageBox.Show("Unknown exception", app.glbExceptionTitle, MessageBoxButton.OK); } } private void stk_searchworkorder_MouseLeave(object sender, MouseEventArgs e) { try { SolidColorBrush br = new SolidColorBrush(Color.FromArgb(255, 0, 0, 0)); stk_searchworkorder.Background = br; } catch (System.Reflection.TargetException ex) { } catch (Exception ex) { MessageBox.Show("Unknown exception", app.glbExceptionTitle, MessageBoxButton.OK); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload