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

NullReferenceException

7 Answers 94 Views
Map
This is a migrated thread and some comments may be shown as answers.
Simon Theuma
Top achievements
Rank 1
Simon Theuma asked on 05 May 2010, 09:06 AM
Hi there,

I am getting a serious NullReferenceException (haven't managed to catch it by exceptions and it crashes my client), and it goes something like this:

   at Telerik.Windows.Controls.Map.BingMapProvider.InitializeProvider() in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\DataVisualization\Map\Providers\BingMapProvider.cs:line 542
   at Telerik.Windows.Controls.Map.BingMapProvider.ImageryService_GetImageryMetadataCompleted(Object sender, GetImageryMetadataCompletedEventArgs e) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\DataVisualization\Map\Providers\BingMapProvider.cs:line 499
   at Telerik.Windows.Controls.Map.VEWPFImageryService.ImageryServiceClient.OnGetImageryMetadataCompleted(Object state) in c:\Builds\WPF_Scrum\Release_WPF\Sources\Development\Controls\DataVisualization\Service References\VEWPFImageryService\Reference.cs:line 2106
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

It seems to be happening at random, so I can't pin it down.  Is there any way I can solve this please?

Thanks,
Simon.



7 Answers, 1 is accepted

Sort by
0
Simon Theuma
Top achievements
Rank 1
answered on 05 May 2010, 09:09 AM
The source is "Telerik.Windows.Controls.DataVisualization"
0
Andrey
Telerik team
answered on 05 May 2010, 11:25 AM
Hello Simon Theuma,

From the exception stack I can see that you are not using the latest version of the RadMap control. This problem has been addressed in the 2010.Q1.SP1 release. Please, download and use the latest version.

Kind regards,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Simon Theuma
Top achievements
Rank 1
answered on 05 May 2010, 11:33 AM
hmm... I checked my reference property versions, and they all seem to be "2010.1.309.35".  Is this the latest version or is there another version I can download?

Thanks,
Simon.
0
Andrey
Telerik team
answered on 05 May 2010, 04:21 PM
Hi Simon Theuma,

No, this is not the latest version. The latest SP1 DLLs have 2010.1.422 version number. You can find them in the Downloads section in your account.

Kind regards,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Simon Theuma
Top achievements
Rank 1
answered on 05 May 2010, 08:00 PM
I updated, and the problem has gotten worse! It happens pretty much every time I load a map now.  Here's the new stacktrace:

Source: "Telerik.Windows.Controls.DataVisualization"

TargetSite: {Void ProviderInitializeCompleted(System.Object, System.EventArgs)}

Trace:
   at Telerik.Windows.Controls.Map.TileLayer.ProviderInitializeCompleted(Object sender, EventArgs e) in c:\Builds\WPF_Scrum\DataVisualization_WPF_2010_Q1\Sources\Development\Controls\DataVisualization\Map\Layers\TileLayer.cs:line 229
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at Telerik.Windows.Controls.Map.MapProviderBase.get_IsInitialized() in c:\Builds\WPF_Scrum\DataVisualization_WPF_2010_Q1\Sources\Development\Controls\DataVisualization\Map\Providers\MapProviderBase.cs:line 159
   at Telerik.Windows.Controls.Map.BingMapSource.InitializeProvider() in c:\Builds\WPF_Scrum\DataVisualization_WPF_2010_Q1\Sources\Development\Controls\DataVisualization\Map\Providers\Map\Bing\BingMapSource.cs:line 501
   at Telerik.Windows.Controls.Map.BingMapSource.ImageryService_GetImageryMetadataCompleted(Object sender, GetImageryMetadataCompletedEventArgs e) in c:\Builds\WPF_Scrum\DataVisualization_WPF_2010_Q1\Sources\Development\Controls\DataVisualization\Map\Providers\Map\Bing\BingMapSource.cs:line 457
   at Telerik.Windows.Controls.Map.VEWPFImageryService.ImageryServiceClient.OnGetImageryMetadataCompleted(Object state) in c:\Builds\WPF_Scrum\DataVisualization_WPF_2010_Q1\Sources\Development\Controls\DataVisualization\Service References\VEWPFImageryService\Reference.cs:line 2106
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Is there any way I can put a try-catch around this please?

Thanks,
Simon.
0
Simon Theuma
Top achievements
Rank 1
answered on 05 May 2010, 08:09 PM
hmm... the problem doesnt seem to occur if I run the program under 'release' instead of 'debug', though it is a bit annoying having to go through each and every exception... thanks for your help :)
0
Andrey
Telerik team
answered on 06 May 2010, 10:01 AM
Hi Simon Theuma,

I am afraid we cannot reproduce this exception using RadControls for WPF v 2010 Q1 build 0422 (SP1).
Could you, please, send to us whole application or create sample solution which reproduces this problem?

Kind regards,
Andrey Murzov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Map
Asked by
Simon Theuma
Top achievements
Rank 1
Answers by
Simon Theuma
Top achievements
Rank 1
Andrey
Telerik team
Share this question
or