This project is read-only.

WP7 NullReferenceException crash stack trace data from Devcenter

Jan 5, 2013 at 3:54 AM

Hi RSUTER, I'm having this issue reported on the windows phone dev center, in a month, I had 266 crashes and here's the stack trace, I'm wondering if you have an idea on how to handle this exception.

Thanks a lot.

Abe

 

Frame    Image             Function                                                                 Offset   
0        coredll.dll       xxx_RaiseException                                                       19       
1        mscoree3_7.dll                                                                             436488   
2        mscoree3_7.dll                                                                             386545   
3        mscoree3_7.dll                                                                             540936   
4                          TransitionStub                                                           0        
5                          MyToolkit.Multimedia.YouTube.CancelPlay                                  280      
6                          MyToolkit.Multimedia.YouTube.CancelPlay                                  52       
7                          UMilenioNoticias.Views.MilenioPanorama.OnNavigatedTo                     44       
8                          Microsoft.Phone.Controls.PhoneApplicationPage.InternalOnNavigatedTo      288      
9                          System.Windows.Navigation.NavigationService.RaiseNavigated               488      
10                         System.Windows.Navigation.NavigationService.CompleteNavigation           812      
11                         .__c__DisplayClass7._NavigateCore_ContinueNavigation_b__4                88       
12       mscoree3_7.dll                                                                             429164   
13       mscoree3_7.dll                                                                             185803   
14       mscoree3_7.dll                                                                             184423   
15                         System.Reflection.RuntimeMethodInfo.InternalInvoke                       112      
16                         System.Reflection.RuntimeMethodInfo.InternalInvoke                       1560     
17                         System.Reflection.MethodBase.Invoke                                      104      
18                         System.Delegate.DynamicInvokeOne                                         476      
19                         System.MulticastDelegate.DynamicInvokeImpl                               84

Jan 13, 2013 at 10:19 PM

Maybe the "httpResponse.Abort();" in "CancelPlay" method is the problem as it possibly throws an exception?

Have you tried to put it into a try-catch clause?

try
{
httpResponse.Abort();
}
catch { }

Inform me if it is working then I'll change the source code and build a new NuGet package...

Jan 19, 2013 at 9:02 PM

It worked ok, thanks a lot for the tweak,

Jan 20, 2013 at 6:01 PM
Edited Jan 20, 2013 at 6:01 PM

Ok thanks for your reply. The bug has now been fixed in the source code and will be available in the next NuGet package version.