# Exception while panning

**URL:** <https://community.thinkgeo.com/t/exception-while-panning/621>\
**Category:** WinForms\
**Created:** [August 18, 2009, 6:32am UTC](https://community.thinkgeo.com/t/exception-while-panning/621 "2009-08-18T06:32:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/b2d939/32.png) [@Patrick](https://community.thinkgeo.com/u/Patrick)\
**Post date:** [August 18, 2009, 6:32am UTC](https://community.thinkgeo.com/t/exception-while-panning/621/1 "2009-08-18T06:32:04Z")

</div>

Hi,

after&nbsp;some&nbsp;manipulation&nbsp;I'm&nbsp;receiving&nbsp;this&nbsp;exception&nbsp;while&nbsp;panning;&nbsp;please&nbsp;help.

This&nbsp;occurs&nbsp;in&nbsp;vs2008,&nbsp;ms&nbsp;3.0.362,&nbsp;both&nbsp;in&nbsp;single&nbsp;&&nbsp;multithread.

Patrick.

Le&nbsp;format&nbsp;de&nbsp;la&nbsp;chaîne&nbsp;d'entrée&nbsp;est&nbsp;incorrect.  
  
&nbsp;&nbsp;&nbsp;à&nbsp;System.Number.StringToNumber(String&nbsp;str,&nbsp;NumberStyles&nbsp;options,&nbsp;NumberBuffer&&nbsp;number,&nbsp;NumberFormatInfo&nbsp;info,&nbsp;Boolean&nbsp;parseDecimal)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;System.Number.ParseDouble(String&nbsp;value,&nbsp;NumberStyles&nbsp;options,&nbsp;NumberFormatInfo&nbsp;numfmt)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;System.Double.Parse(String&nbsp;s,&nbsp;NumberStyles&nbsp;style,&nbsp;NumberFormatInfo&nbsp;info)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.Core.FileBitmapTileCache.GetHigherScaleTileCore(RectangleShape&nbsp;tileBoundingBox,&nbsp;Double&nbsp;tileScale)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.Core.BitmapTileCache.GetHigherScaleTile(RectangleShape&nbsp;tileBoundingBox,&nbsp;Double&nbsp;tileScale)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.DesktopEdition.xae5a18c284d0ccc8.GetHigherScaleTileCore(RectangleShape&nbsp;tileBoundingBox,&nbsp;Double&nbsp;tileScale)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.Core.BitmapTileCache.GetHigherScaleTile(RectangleShape&nbsp;tileBoundingBox,&nbsp;Double&nbsp;tileScale)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.DrawSinglePreview(Graphics&nbsp;graphics,&nbsp;Overlay&nbsp;overlay,&nbsp;BitmapTile&nbsp;bitmapTile)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xf12dc5c7e687c240(Boolean&nbsp;x991dc8ddc7528b44,&nbsp;RectangleShape&nbsp;x178b193eec228e6e)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x9ac8c50f434f4b39(Int32&nbsp;xb565f4681f05557a)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xae767d6c6f6af1ca(InteractionArguments&nbsp;x195facd4ef5d753d)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xfeca3317d3c75bbb(Object&nbsp;xd9272088e65bd176,&nbsp;x6a8380ab1a7ebb4c&nbsp;xc2fd4c0ed406cdb7)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.DesktopEdition.x5cd462d41be2f68a.OnMouseEvent(x6a8380ab1a7ebb4c&nbsp;e)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.DesktopEdition.x5cd462d41be2f68a.AnalyseMouseMove(Double&nbsp;screenX,&nbsp;Double&nbsp;screenY,&nbsp;Double&nbsp;worldX,&nbsp;Double&nbsp;worldY)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x7df2db1d74504263(Object&nbsp;xd9272088e65bd176,&nbsp;MouseEventArgs&nbsp;xc2fd4c0ed406cdb7)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;System.Windows.Forms.Control.WmMouseMove(Message&&nbsp;m)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;System.Windows.Forms.Control.WndProc(Message&&nbsp;m)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&&nbsp;m)  
  
&nbsp;&nbsp;&nbsp;à&nbsp;System.Windows.Forms.NativeWindow.Callback(IntPtr&nbsp;hWnd,&nbsp;Int32&nbsp;msg,&nbsp;IntPtr&nbsp;wparam,&nbsp;IntPtr&nbsp;lparam)

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [August 19, 2009, 3:51am UTC](https://community.thinkgeo.com/t/exception-while-panning/621/2 "2009-08-19T03:51:29Z")

</div>

Patrick,

Thanks&nbsp;for&nbsp;your&nbsp;reporting!  
&nbsp;  
I&nbsp;think&nbsp;this&nbsp;should&nbsp;be&nbsp;a&nbsp;potential&nbsp;bug.  
&nbsp;  
For&nbsp;example,&nbsp;the&nbsp;folder&nbsp;name&nbsp;is&nbsp;“147647947.5”&nbsp;for&nbsp;one&nbsp;specified&nbsp;scale&nbsp;tile&nbsp;cache.  
&nbsp;  
Original,&nbsp;when&nbsp;we&nbsp;get&nbsp;scale&nbsp;for&nbsp;it,&nbsp;we&nbsp;do&nbsp;as&nbsp;following&nbsp;which&nbsp;seems&nbsp;incorrect&nbsp;in&nbsp;your&nbsp;French&nbsp;environment:  
`scales[i] = double.Parse(directoryInfos[i].Name);`  
&nbsp;  
  
Now&nbsp;I&nbsp;have&nbsp;changed&nbsp;it&nbsp;to&nbsp;following,&nbsp;it&nbsp;should&nbsp;work:  
`double.Parse(directoryInfos<i>.Name,CultureInfo.InvariantCulture);`  
&nbsp;  
  
It&nbsp;will&nbsp;be&nbsp;ready&nbsp;in&nbsp;next&nbsp;release!  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;feel&nbsp;free&nbsp;to&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks.  
&nbsp;  
Yale

---

<div class="post-metadata">

**Author:** ![Patrick](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/b2d939/32.png) [@Patrick](https://community.thinkgeo.com/u/Patrick)\
**Post date:** [August 19, 2009, 4:11am UTC](https://community.thinkgeo.com/t/exception-while-panning/621/3 "2009-08-19T04:11:00Z")

</div>

Only&nbsp;one&nbsp;question&nbsp;…&nbsp;I’m&nbsp;in&nbsp;rush&nbsp;on&nbsp;this&nbsp;one;&nbsp;may&nbsp;I&nbsp;have&nbsp;an&nbsp;intermediate&nbsp;release?

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [August 19, 2009, 10:10pm UTC](https://community.thinkgeo.com/t/exception-while-panning/621/4 "2009-08-19T22:10:12Z")

</div>

Patrick,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks&nbsp;for&nbsp;your&nbsp;post&nbsp;and&nbsp;patience!&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;think&nbsp;we&nbsp;can&nbsp;send&nbsp;you&nbsp;a&nbsp;temporary&nbsp;version&nbsp;very&nbsp;soon,&nbsp;while&nbsp;I&nbsp;want&nbsp;to&nbsp;point&nbsp;out&nbsp;there&nbsp;is&nbsp;a&nbsp;couple&nbsp;of&nbsp;difference&nbsp;made&nbsp;to&nbsp;the&nbsp;Desktop&nbsp;Edition,&nbsp;one&nbsp;big&nbsp;difference&nbsp;for&nbsp;example&nbsp;is,&nbsp;we&nbsp;have&nbsp;moved&nbsp;the&nbsp;cache&nbsp;system&nbsp;from&nbsp;MapControl&nbsp;to&nbsp;Overlay&nbsp;for&nbsp;much&nbsp;more&nbsp;control&nbsp;and&nbsp;better&nbsp;performance,&nbsp;by&nbsp;default&nbsp;the&nbsp;cache&nbsp;is&nbsp;turned&nbsp;off,&nbsp;you&nbsp;have&nbsp;to&nbsp;turn&nbsp;on&nbsp;the&nbsp;cache&nbsp;manually.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Besides,&nbsp;we&nbsp;probably&nbsp;will&nbsp;have&nbsp;a&nbsp;public&nbsp;release&nbsp;at&nbsp;the&nbsp;end&nbsp;of&nbsp;this&nbsp;month&nbsp;for&nbsp;those&nbsp;changes.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Let&nbsp;me&nbsp;know&nbsp;if&nbsp;you&nbsp;still&nbsp;need&nbsp;a&nbsp;temporary&nbsp;version&nbsp;(3.0.390).&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;

---

<div class="post-metadata">

**Author:** ![Patrick](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/p/b2d939/32.png) [@Patrick](https://community.thinkgeo.com/u/Patrick)\
**Post date:** [August 20, 2009, 4:36am UTC](https://community.thinkgeo.com/t/exception-while-panning/621/5 "2009-08-20T04:36:39Z")

</div>

Yale,&nbsp;  
&nbsp;&nbsp;  
&nbsp;yes,&nbsp;I&nbsp;definitively&nbsp;need&nbsp;it&nbsp;by&nbsp;the&nbsp;end&nbsp;of&nbsp;this&nbsp;week.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thank&nbsp;you,&nbsp;  
&nbsp;Patrick.

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [August 21, 2009, 2:26am UTC](https://community.thinkgeo.com/t/exception-while-panning/621/6 "2009-08-21T02:26:11Z")

</div>

Patrick,&nbsp;  
&nbsp;&nbsp;  
&nbsp;I&nbsp;have&nbsp;asked&nbsp;our&nbsp;support&nbsp;to&nbsp;send&nbsp;you&nbsp;a&nbsp;temporary&nbsp;version&nbsp;(3.0.391).&nbsp;  
&nbsp;&nbsp;  
&nbsp;Any&nbsp;more&nbsp;questions&nbsp;just&nbsp;let&nbsp;me&nbsp;know.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Thanks.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Yale&nbsp;
