Handy control but I am not able to get it to capture the exceptions

9 posts, 1 answers
  1. Gary Davis
    Gary Davis avatar
    59 posts
    Member since:
    Oct 2003

    Posted 03 Feb 2012 Link to this post

    I followed the example in http://blogs.telerik.com/blogs/posts/12-02-01/introducing-raddiagnostics-for-windows-phone.aspx.

    I was unable to get this to work. The exception is not caught and no popup is displayed for a simple null-ref trap.

    I put these stmts into the App() constructor (at the end after the call to InitializePhoneApplication().

    var diagnostics = new RadDiagnostics();
    diagnostics.EmailTo = "myemail@mail.com";
    diagnostics.Init();

    Do I need anything else? Perhaps something in Application_UnhandledException?

    Thanks,
    Gary Davis
    Webguild.com

  2. Answer
    Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2182 posts
    Member since:
    Sep 2012

    Posted 06 Feb 2012 Link to this post

    Hello Gary,

    Thank you for trying out the beta!

    Yes you should add one more thing in order to register the usage helper in Application.Launching:

    // Code to execute when the application is launching (eg, from Start)
    // This code will not execute when the application is reactivated
    private void Application_Launching(object sender, LaunchingEventArgs e)
    {
        ApplicationUsageHelper.Init(1.0);//1.0 is the app version. Change it with your app version.
    }

    Please let us know how it goes and when you have feedback on the control/data sent.

    Greetings, Valentin.Stoychev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

  3. Gary Davis
    Gary Davis avatar
    59 posts
    Member since:
    Oct 2003

    Posted 06 Feb 2012 Link to this post

    Thanks, that solved the problem. I did get the popup and also the email with the exception info. Too bad the failing line number is not available since it is compiled as release configuration.
    Gary

  4. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2182 posts
    Member since:
    Sep 2012

    Posted 07 Feb 2012 Link to this post

    Hello Gary,

    yes - we can't show you the line number. Please let us know if you think any other info can be added to the diagnostic information already provided.

    Kind regards, Valentin.Stoychev
    the Telerik team

    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

  5. keith patton
    keith patton avatar
    7 posts
    Member since:
    Sep 2009

    Posted 13 Feb 2012 Link to this post

    I'm finding the dialog often doesn't appear on top of everything else, it's in the visual tree and you can tap it on screen if you get the right spot, but it's not visible!

  6. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2182 posts
    Member since:
    Sep 2012

    Posted 14 Feb 2012 Link to this post

    Hello Keith,

    Thank you for reporting this. We are not aware of such an issue.

    Basically we are using our RadWindow (RadMessageBox) to display the information. It basically adds itself as a child on the root element and should cover everything on the page.

    Can you please share a scenario when the window is not on top of everything?

    Regards, Valentin.Stoychev
    the Telerik team

    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

  7. keith patton
    keith patton avatar
    7 posts
    Member since:
    Sep 2009

    Posted 14 Feb 2012 Link to this post

    Hi, 
    I just added it our app and raised an exception on the navigated to of our first view model navigation and it fired the exception handler and phone buzzed but then the message box didn't appear. Then i navigated somewhere, it flickered on the screen and thean i hit back and it flickered on, then off. I then tapped where i thought the Ok button might be and it opened my email. 

    I can't easily share the app at this stage to be honest, but I'd prefer to log the errors into a cloud service if available anyways, so cancelling the message box is fine for now thanks.

  8. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2182 posts
    Member since:
    Sep 2012

    Posted 14 Feb 2012 Link to this post

    Hi keith,

    From your other tickets - we saw that you are using Caliburn. We recreated the scenario you described and it turns out that our RadWindow is having problems to show when used together with Caliburn _and_ you want to show it before the application is initialized. Unfortunately the root visual do not contain the root page when the OnNavigatedTo is raised and thus the Window can not be displayed correctly.

    We will see how to address this scenario for a future release of the suite. Thank you for your cooperation and feedback!

    Kind regards, Valentin.Stoychev
    the Telerik team

    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

  9. Derek
    Derek avatar
    39 posts
    Member since:
    Aug 2012

    Posted 27 Feb 2012 Link to this post

    I'm using Caliburn Micro and it seems to work fine.

Back to Top