# Urgent: Desktop build 3.0.382 issues

**URL:** <https://community.thinkgeo.com/t/urgent-desktop-build-3-0-382-issues/610>\
**Category:** WinForms\
**Created:** [August 12, 2009, 12:19pm UTC](https://community.thinkgeo.com/t/urgent-desktop-build-3-0-382-issues/610 "2009-08-12T12:19:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rose](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/91b2a8/32.png) [@Rose](https://community.thinkgeo.com/u/Rose)\
**Post date:** [August 12, 2009, 12:19pm UTC](https://community.thinkgeo.com/t/urgent-desktop-build-3-0-382-issues/610/1 "2009-08-12T12:19:44Z")

</div>

Hi,

I&nbsp;found&nbsp;a&nbsp;bug&nbsp;in&nbsp;PostgreSQL&nbsp;extention,&nbsp;see&nbsp;detailed&nbsp;information&nbsp;in&nbsp;this&nbsp;link:

[gis.thinkgeo.com/Support/Dis...fault.aspx](http://gis.thinkgeo.com/Support/DiscussionForums/tabid/143/aff/21/aft/6080/afv/topic/Default.aspx)

So&nbsp;I&nbsp;installed&nbsp;the&nbsp;new&nbsp;Desktop&nbsp;build&nbsp;3.0.382&nbsp;DLL&nbsp;package.&nbsp;Before&nbsp;I&nbsp;installed&nbsp;it,&nbsp;my&nbsp;application&nbsp;works&nbsp;well&nbsp;except&nbsp;the&nbsp;problem&nbsp;I&nbsp;mentioned&nbsp;in&nbsp;above&nbsp;link.

But&nbsp;after&nbsp;I&nbsp;installed&nbsp;&nbsp;3.0.382&nbsp;DLL&nbsp;package,&nbsp;my&nbsp;application&nbsp;does&nbsp;not&nbsp;work&nbsp;as&nbsp;before,&nbsp;the&nbsp;MapClick&nbsp;event&nbsp;is&nbsp;not&nbsp;fired&nbsp;any&nbsp;more.&nbsp;When&nbsp;I&nbsp;set&nbsp;the&nbsp;TrackOverlay.TrackMode&nbsp;to&nbsp;TrackMode.Line,&nbsp;drag&nbsp;the&nbsp;mouse&nbsp;on&nbsp;the&nbsp;map,&nbsp;double&nbsp;click&nbsp;the&nbsp;mouse&nbsp;,the&nbsp;TrackEnded&nbsp;event&nbsp;does&nbsp;not&nbsp;fire&nbsp;any&nbsp;more.&nbsp;Also&nbsp;I&nbsp;got&nbsp;a&nbsp;weird&nbsp;exception:

&nbsp;

Why&nbsp;this&nbsp;happened?&nbsp;Urgent&nbsp;help&nbsp;please!&nbsp;I&nbsp;am&nbsp;supposed&nbsp;to&nbsp;release&nbsp;my&nbsp;product&nbsp;to&nbsp;my&nbsp;client&nbsp;tomorrow.

&nbsp;

System.Collections.Generic.KeyNotFoundException&nbsp;was&nbsp;unhandled  
&nbsp;&nbsp;Message="The&nbsp;given&nbsp;key&nbsp;was&nbsp;not&nbsp;present&nbsp;in&nbsp;the&nbsp;dictionary."  
&nbsp;&nbsp;Source="mscorlib"  
&nbsp;&nbsp;StackTrace:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.ThrowHelper.ThrowKeyNotFoundException()  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Collections.Generic.Dictionary`2.get\_Item(TKey&nbsp;key)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.GeoCollection`1.get\_Item(String&nbsp;key)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.InMemoryFeatureSource.GetFeaturesBasedOnCachedBoundingBoxes(RectangleShape&nbsp;extent,&nbsp;IEnumerable`1&nbsp;returningColumnNames)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.InMemoryFeatureSource.GetFeaturesInsideBoundingBoxCore(RectangleShape&nbsp;boundingBox,&nbsp;IEnumerable`1&nbsp;returningColumnNames)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.FeatureSource.GetFeaturesForDrawingCore(RectangleShape&nbsp;boundingBox,&nbsp;Double&nbsp;screenWidth,&nbsp;Double&nbsp;screenHeight,&nbsp;IEnumerable`1&nbsp;returningColumnNames)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.FeatureSource.GetFeaturesForDrawing(RectangleShape&nbsp;boundingBox,&nbsp;Double&nbsp;screenWidth,&nbsp;Double&nbsp;screenHeight,&nbsp;IEnumerable`1&nbsp;returningColumnNames)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.FeatureLayer.DrawCore(GeoCanvas&nbsp;canvas,&nbsp;Collection`1&nbsp;labelsInAllLayers)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.Core.Layer.Draw(GeoCanvas&nbsp;canvas,&nbsp;Collection`1&nbsp;labelsInAllLayers)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.TrackInteractiveOverlay.DrawCore(GeoCanvas&nbsp;canvas)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas&nbsp;canvas)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x27d0591c2adda8d9(RectangleShape&nbsp;xb35a33b423b17f65,&nbsp;Overlay&nbsp;x99251f66cdabc2ad,&nbsp;Int32&nbsp;xa209325f5c895f7e,&nbsp;Int32&nbsp;x7454a0d1965919b1,&nbsp;GeographyUnit&nbsp;xbb704b4400ce6f76)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x568a187128faa92b(IEnumerable`1&nbsp;xa6f0db4f183189f1)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x9ac8c50f434f4b39(Int32&nbsp;xb565f4681f05557a)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.Refresh()  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xc3ce1ee297caf10d(InteractionArguments&nbsp;x195facd4ef5d753d)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xfeca3317d3c75bbb(Object&nbsp;xd9272088e65bd176,&nbsp;x6a8380ab1a7ebb4c&nbsp;xc2fd4c0ed406cdb7)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.x5cd462d41be2f68a.OnMouseEvent(x6a8380ab1a7ebb4c&nbsp;e)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&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;&nbsp;&nbsp;&nbsp;at&nbsp;ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x7df2db1d74504263(Object&nbsp;xd9272088e65bd176,&nbsp;MouseEventArgs&nbsp;xc2fd4c0ed406cdb7)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.MouseEventHandler.Invoke(Object&nbsp;sender,&nbsp;MouseEventArgs&nbsp;e)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.WmMouseMove(Message&&nbsp;m)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.WndProc(Message&&nbsp;m)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&&nbsp;m)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr&nbsp;hWnd,&nbsp;Int32&nbsp;msg,&nbsp;IntPtr&nbsp;wparam,&nbsp;IntPtr&nbsp;lparam)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&&nbsp;msg)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32&nbsp;dwComponentID,&nbsp;Int32&nbsp;reason,&nbsp;Int32&nbsp;pvLoopData)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32&nbsp;reason,&nbsp;ApplicationContext&nbsp;context)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32&nbsp;reason,&nbsp;ApplicationContext&nbsp;context)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]&nbsp;commandLine)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;AISAnalyser.My.MyApplication.Main(String[]&nbsp;Args)&nbsp;in&nbsp;17d14f5c-a337-4978-8281-53493378c1071.vb:line&nbsp;81  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.AppDomain.\_nExecuteAssembly(Assembly&nbsp;assembly,&nbsp;String[]&nbsp;args)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ExecutionContext.Run(ExecutionContext&nbsp;executionContext,&nbsp;ContextCallback&nbsp;callback,&nbsp;Object&nbsp;state)  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at&nbsp;System.Threading.ThreadHelper.ThreadStart()  
&nbsp;&nbsp;InnerException:  
&nbsp;

---

<div class="post-metadata">

**Author:** ![Rose](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/r/91b2a8/32.png) [@Rose](https://community.thinkgeo.com/u/Rose)\
**Post date:** [August 12, 2009, 3:12pm UTC](https://community.thinkgeo.com/t/urgent-desktop-build-3-0-382-issues/610/2 "2009-08-12T15:12:57Z")

</div>

Hi,

After&nbsp;copy&nbsp;the&nbsp;new&nbsp;MapSuiteFdoExtensionx86&nbsp;directory&nbsp;into&nbsp;Windows\System32&nbsp;directory&nbsp;and&nbsp;overwrite&nbsp;the&nbsp;old&nbsp;one,&nbsp;the&nbsp;MapClick&nbsp;and&nbsp;TrackEnded&nbsp;event&nbsp;got&nbsp;working.

Thanks

Rose

---

<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 13, 2009, 12:32am UTC](https://community.thinkgeo.com/t/urgent-desktop-build-3-0-382-issues/610/3 "2009-08-13T00:32:00Z")

</div>

Rose,

The&nbsp;reason&nbsp;of&nbsp;this&nbsp;exception&nbsp;happens&nbsp;is&nbsp;we&nbsp;added&nbsp;an&nbsp;index&nbsp;to&nbsp;the&nbsp;InMemoryFeatureSource&nbsp;in&nbsp;the&nbsp;latest&nbsp;build&nbsp;(3.0.382).&nbsp;And&nbsp;if&nbsp;you&nbsp;use&nbsp;the&nbsp;InternalFeatures&nbsp;property&nbsp;which&nbsp;is&nbsp;obsolete&nbsp;you&nbsp;should&nbsp;call&nbsp;the&nbsp;BuildIndex&nbsp;function&nbsp;manually.&nbsp;I&nbsp;think&nbsp;you&nbsp;didn’t&nbsp;call&nbsp;the&nbsp;BuildIndex&nbsp;method&nbsp;in&nbsp;the&nbsp;right&nbsp;place&nbsp;based&nbsp;on&nbsp;the&nbsp;exception&nbsp;trace&nbsp;message.&nbsp;For&nbsp;example,&nbsp;you&nbsp;should&nbsp;also&nbsp;call&nbsp;the&nbsp;BuildIndex&nbsp;method&nbsp;after&nbsp;this&nbsp;line&nbsp;of&nbsp;code:  
&nbsp;

`winformsMap1.TrackOverlay.TrackShapeLayer.InternalFeatures.Clear(); `

&nbsp;  
We&nbsp;have&nbsp;a&nbsp;plan&nbsp;to&nbsp;build&nbsp;index&nbsp;in&nbsp;the&nbsp;internal&nbsp;code&nbsp;for&nbsp;the&nbsp;TrackInteractiveOverlay&nbsp;and&nbsp;EditInteractiveOverlay,&nbsp;but&nbsp;we&nbsp;haven’t&nbsp;implement&nbsp;that&nbsp;so&nbsp;far.  
&nbsp;  
Another&nbsp;solution&nbsp;for&nbsp;the&nbsp;bug&nbsp;in&nbsp;your&nbsp;last&nbsp;post&nbsp;is&nbsp;that&nbsp;you&nbsp;can&nbsp;still&nbsp;use&nbsp;the&nbsp;DLLs&nbsp;in&nbsp;3.0.362,&nbsp;just&nbsp;use&nbsp;the&nbsp;new&nbsp;PostgreExtension.dll&nbsp;and&nbsp;Npgsql.dll&nbsp;in&nbsp;the&nbsp;folder&nbsp;“\Spatial&nbsp;Extensions\Postgre&nbsp;Extension\”&nbsp;of&nbsp;3.0.382&nbsp;to&nbsp;override&nbsp;the&nbsp;old&nbsp;one.&nbsp;I&nbsp;think&nbsp;this&nbsp;solution&nbsp;is&nbsp;much&nbsp;easier.  
&nbsp;  
Sorry&nbsp;for&nbsp;the&nbsp;inconvenience!  
&nbsp;  
Any&nbsp;more&nbsp;questions&nbsp;please&nbsp;let&nbsp;me&nbsp;know.  
&nbsp;  
Thanks,  
&nbsp;  
sun
