This is a migrated thread and some comments may be shown as answers.

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

8 Answers 158 Views
Diagnostics
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Gary Davis
Top achievements
Rank 2
Gary Davis asked on 03 Feb 2012, 07:38 PM
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

8 Answers, 1 is accepted

Sort by
0
Accepted
Valentin.Stoychev
Telerik team
answered on 06 Feb 2012, 08:44 AM
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 >>
0
Gary Davis
Top achievements
Rank 2
answered on 07 Feb 2012, 12:09 AM
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
0
Valentin.Stoychev
Telerik team
answered on 07 Feb 2012, 10:58 AM
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 >>
0
keith patton
Top achievements
Rank 1
answered on 14 Feb 2012, 05:08 AM
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!
0
Valentin.Stoychev
Telerik team
answered on 14 Feb 2012, 09:28 AM
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 >>
0
keith patton
Top achievements
Rank 1
answered on 14 Feb 2012, 09:58 AM
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.
0
Valentin.Stoychev
Telerik team
answered on 14 Feb 2012, 11:58 AM
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 >>
0
Derek
Top achievements
Rank 1
answered on 27 Feb 2012, 08:50 AM
I'm using Caliburn Micro and it seems to work fine.
Tags
Diagnostics
Asked by
Gary Davis
Top achievements
Rank 2
Answers by
Valentin.Stoychev
Telerik team
Gary Davis
Top achievements
Rank 2
keith patton
Top achievements
Rank 1
Derek
Top achievements
Rank 1
Share this question
or