windrobin / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 1 forks source link

Runtime Error when navigating from KML Tree viewer to certain Placemarks #101

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to KML tree viewer
+-USGS Real-time Earthquakes
 +-Tectonic Plate Boundaries
  +-Subduction Zone

2. Double-click Subduction Zone or any other Placemark in the  Tectonic Plate 
Boundaries folder.

What is the expected output? What do you see instead?
Expected output is navigation to the double clicked Placemark. Application 
breaks and throws an exception instead.

What version of the product are you using? On what operating system?
Test_Application_7, February 8, 2012 release. Downloaded March 13, 2013.
Windows 7, 64bit

Please provide any additional information below.

************** Exception Text **************
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: 'System.__ComObject' 
does not contain a definition for 'getOuterBoundary'
   at CallSite.Target(Closure , CallSite , ComObject )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at CallSite.Target(Closure , CallSite , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site, T0 arg0)
   at FC.GEPluginCtrls.KmlHelpers.WalkKmlDom(Object feature, Action`1 callback, Boolean walkFeatures, Boolean walkGeometries) in C:\Documents and Settings\mook\My Documents\Visual Studio 2010\Projects\winforms-geplugin-control-library\Helpers\KmlHelpers.cs:line 824
   at CallSite.Target(Closure , CallSite , Type , Object , Action`1 , Boolean , Boolean )
   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid5[T0,T1,T2,T3,T4](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
   at FC.GEPluginCtrls.KmlHelpers.WalkKmlDom(Object feature, Action`1 callback, Boolean walkFeatures, Boolean walkGeometries) in C:\Documents and Settings\mook\My Documents\Visual Studio 2010\Projects\winforms-geplugin-control-library\Helpers\KmlHelpers.cs:line 802
   at CallSite.Target(Closure , CallSite , Type , Object , Action`1 , Boolean , Boolean )
   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid5[T0,T1,T2,T3,T4](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3, T4 arg4)
   at FC.GEPluginCtrls.KmlHelpers.ComputeBounds(Object kmlFeature) in C:\Documents and Settings\mook\My Documents\Visual Studio 2010\Projects\winforms-geplugin-control-library\Helpers\KmlHelpers.cs:line 49
   at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
   at FC.GEPluginCtrls.GEHelpers.FlyToObject(Object ge, Object feature, Boolean boundsFallback, Double aspectRatio, Double defaultRange, Double scaleRange) in C:\Documents and Settings\mook\My Documents\Visual Studio 2010\Projects\winforms-geplugin-control-library\Helpers\GEHelpers.cs:line 144
   at CallSite.Target(Closure , CallSite , Type , Object , Object )
   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid3[T0,T1,T2](CallSite site, T0 arg0, T1 arg1, T2 arg2)
   at FC.GEPluginCtrls.KmlTreeView.OnNodeMouseDoubleClick(TreeNodeMouseClickEventArgs e) in C:\Documents and Settings\mook\My Documents\Visual Studio 2010\Projects\winforms-geplugin-control-library\Controls\KmlTreeView.cs:line 356
   at System.Windows.Forms.TreeView.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
WindowsFormsApplication1
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/DEV/Desktop/Test%20Application_7/bin/Debug/WindowsFormsApplication1.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
FC.GEPluginCtrls
    Assembly Version: 3.0.0.0
    Win32 Version: 3.0.0.0
    CodeBase: file:///C:/Users/DEV/Desktop/Test%20Application_7/bin/Debug/FC.GEPluginCtrls.DLL
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Microsoft.CSharp
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
    Assembly Version: 0.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Microsoft.mshtml
    Assembly Version: 7.0.3300.0
    Win32 Version: 7.0.3300.0
    CodeBase: file:///C:/Windows/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
System.Dynamic
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
System.Dynamic.DynamicAssembly
    Assembly Version: 0.0.0.0
    Win32 Version: 4.0.30319.17929
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.0.30319.17929 built by: FX45RTMREL
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

Original issue reported on code.google.com by kojo.adj...@gmail.com on 22 Mar 2013 at 3:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just saw you are using the test application rather than the latest source 
code...

I believe if you compile the latest source this issue will not arise. It was a 
bug in the  KmlDomWalk method that called 'getOuterBoundary' on objects that do 
not support it. 

If you would like to try without recompiling then you can just grab the latest 
library here.

https://code.google.com/p/winforms-geplugin-control-library/source/browse/#svn%2
Ftrunk%2Fbin%2FRelease

Original comment by fraser.c...@gmail.com on 25 Mar 2013 at 10:21

GoogleCodeExporter commented 9 years ago
Also, just to note the latest version of the KmlTreeView actually honors the 
Kml listItemType checkHideChildren - so the items in that particular folder 
would be correctly hidden. 

Original comment by fraser.c...@gmail.com on 25 Mar 2013 at 10:56