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

Problems in 2010 3.1314.40

4 Answers 87 Views
Map
This is a migrated thread and some comments may be shown as answers.
Rieni De Rijke
Top achievements
Rank 1
Rieni De Rijke asked on 27 Jan 2011, 12:22 PM
We started to use the Telerik version 2010 3.1314.40 dll's.
Now we get errormessages which we didn't have had before.
We just open a window with a RadMap connected to a mapsource.
After a bit paning, zooming and waiting we get this message: 

System.ArgumentNullException: Value cannot be null.
Parameter name: Children of 'System.Windows.Controls.UIElementCollection' cannot be null. Object derived from UIElement expected.
   at System.Windows.Controls.UIElementCollection.ValidateElement(UIElement element)
   at System.Windows.Controls.UIElementCollection.AddInternal(UIElement element)
   at System.Windows.Controls.UIElementCollection.Add(UIElement element)
   at Telerik.Windows.Controls.Map.MultiScaleImage.ImageCanvas.AddImage(Image image, AsyncDownloader downloader)
   at Telerik.Windows.Controls.Map.MultiScaleImage.AssyncImageReaderComplete(Stream stream, AsyncDownloader downloader)
Source: mscorlib
Target: System.Object _InvokeMethodFast(System.IRuntimeMethodInfo, System.Object, System.Object[], System.SignatureStruct ByRef, System.Reflection.MethodAttributes, System.RuntimeType)
Stacktrace:    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

4 Answers, 1 is accepted

Sort by
0
Harald Vålerhaugen
Top achievements
Rank 1
answered on 27 Jan 2011, 02:35 PM
Let me just add that we are using a custom tile provider which has worked out fine until this problem suddenly appeared. Let's assume that some of the tile requests gets HTTP 500 errors. Will this be handled? What about corrupt images?

The exception often occurs when all the visible tiles are loaded, so it may have something to do with preloading other zoom levels.

More exception info:

MultiScaleImage.cs

System.NotSupportedException occurred
  Message=No imaging component suitable to complete this operation was found.
  Source=PresentationCore
  StackTrace:
       at System.Windows.Media.Imaging.BitmapDecoder.SetupDecoderFromUriOrStream(Uri uri, Stream stream, BitmapCacheOption cacheOption, Guid& clsId, Boolean& isOriginalWritable, Stream& uriStream, UnmanagedMemoryStream& unmanagedMemoryStream, SafeFileHandle& safeFilehandle)
  InnerException: System.Runtime.InteropServices.COMException
       Message=Exception from HRESULT: 0x88982F50
       ErrorCode=-2003292336
       InnerException: 


HaraldV
0
Andrey
Telerik team
answered on 01 Feb 2011, 09:24 AM
Hello Harald,

Thank you for additional information.
We have reproduced the problem. The HTTP error 500 is correctly handled by the map control, but the corrupted image throws the exception.
We have created the PITS issue to fix this problem in future releases. You can track it using the following link:
http://www.telerik.com/support/pits.aspx#/public/wpf/4741

I hope this information helps.

Regards,
Andrey Murzov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Rieni De Rijke
Top achievements
Rank 1
answered on 08 Feb 2011, 08:51 AM
I checked the PITS issue and noticed that the state has changed to "resolved". 
So, is the problem fixed? Can we just copy the newest Internal Build? 
0
Andrey
Telerik team
answered on 10 Feb 2011, 09:40 AM
Hi Rieni,

Yes, the internal build already contains the fix for this problem.

Kind regards,
Andrey Murzov
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
Map
Asked by
Rieni De Rijke
Top achievements
Rank 1
Answers by
Harald Vålerhaugen
Top achievements
Rank 1
Andrey
Telerik team
Rieni De Rijke
Top achievements
Rank 1
Share this question
or