ThinkGeo.com    |     Documentation    |     Premium Support

The input double value is out of range

Has something big changed in this latest release that would prevent a WPF map from loading without adding a layer to it?


I upgraded to the latest version this morning. Without changing anything in my application the map crashes with the following error: "The input double value is out of range."


The stacktrace is:


   at ThinkGeo.MapSuite.DesktopEdition.x6d719af406ea4c2c.x12e7df23649722cf(Double x86d4512e4c7d8814, String x34decc57f0820440, Double xaee3bf422e2fd725, x1acec04cd58c1af5 xa798986acdb65a29, Double xe21f77686f8b957e, x1acec04cd58c1af5 x495f4164830ffad5)

   at ThinkGeo.MapSuite.DesktopEdition.x6d719af406ea4c2c.xb86d8097d383be05(Double x86d4512e4c7d8814, String x34decc57f0820440, Double xaee3bf422e2fd725, x1acec04cd58c1af5 xa798986acdb65a29)

   at ThinkGeo.MapSuite.DesktopEdition.xf0380b1a0bc40ca6.StartDraw()

   at ThinkGeo.MapSuite.DesktopEdition.x601a5561df898600.x7510a5c148e0acfd(Object x19b0b2213afc2289)

   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)

   at System.Threading.ExecutionContext.runTryCode(Object userData)

   at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)

   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)

   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)


It looks threading related. Do I need to change a property or anything? The map is empty. I have added no layers to it.


 


Brendan



I rolled back to Beta 1 (where i was this morning) and it's working again. I don't know if other users have this issue. The issue should be simple to re-create. I have a usercontrol inside a window (although i expect this will be the same just in a window) with the map control on. I initialize it normally in the code behind with the following code:


 



MapControl.MapUnit = GeographyUnit.DecimalDegree;
MapControl.ShowLogo = false;
MapControl.MapBackground.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);


Thoughts?

Brendan, 
  
   We did a release yesterday that updated the Web & Services however we didn’t update the Desktop Edition.  We planned to have a few more days to get some issues resolved and those thing I mentioned before.  You must have had the first beta without threading and now have the beta 2 which has these problem.  We will have the update to disable the threading by default out early next week.  If you have the first beta I suggest going back to that one for the next few days. 
  
   I will also check the issue of if you render the map with no layers.  I would think this works with the threading turned off but I will check for sure. 
  
 David

Ah, that explains it. I saw the other posts with the threading issues, and thought this release fixed them with the desktop edition as well.  
  
 I’ve rolled back in the mean time. I’ll wait for the next release before upgrading. Thanks for the explanation.

Brendan, 
  
   No problem. 
  
 David