<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: C# FGDB API crashing on some systems running ArcGIS 9.3.1 in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/c-fgdb-api-crashing-on-some-systems-running-arcgis/m-p/689163#M1103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The API is not dependent on any of the ArcGIS libraries. You do need to have the Microsoft Visual C++ 2010 Run-time installed. Also be aware that the API can only open 10.0 file geodatabases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2012 21:11:41 GMT</pubDate>
    <dc:creator>LanceShipman</dc:creator>
    <dc:date>2012-01-04T21:11:41Z</dc:date>
    <item>
      <title>C# FGDB API crashing on some systems running ArcGIS 9.3.1</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/c-fgdb-api-crashing-on-some-systems-running-arcgis/m-p/689162#M1102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having a problem deploying the C# FGDB API to 'some' systems.&amp;nbsp; I have copied ESRI.FileGDBAIP.dll, FILEGDBAPI.dll and FileGDBAPID.dll to the same directory as the executable.&amp;nbsp; All systems are running the same version of the .Net Framework - v4.0.30319.&amp;nbsp; I put a try/catch around the geodatabase open, but it still crashes immediately on execution.&amp;nbsp; This is a 20 line program that tries to read a table from an FGDB.&amp;nbsp; I am seeing the error on systems running older versions of ArcGIS - specifically 9.3.1.&amp;nbsp; I am not seeing the error on systems running ArcGIS 10.&amp;nbsp; My understanding is that the API should be independant of any ArcGIS install.&amp;nbsp; Is this correct or is there a dependancy on ArcGIS Desktop libraries?&amp;nbsp; Are there any additional installs besides dropping the DLLs into the directory with the executable?&amp;nbsp; It is a simple WPF app.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Application: TestFGDB.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Framework Version: v4.0.30319&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Description: The process was terminated due to an unhandled exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception Info: System.IO.FileNotFoundException&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stack:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at TestFGDB.MainWindow.click_button(System.Object, System.Windows.RoutedEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Controls.Primitives.ButtonBase.OnClick()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Controls.Button.OnClick()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.OnMouseLeftButtonUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs, Boolean)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Input.InputManager.ProcessStagingArea()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Threading.Dispatcher.Run()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Application.RunDispatcher(System.Object)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Application.RunInternal(System.Windows.Window)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Application.Run(System.Windows.Window)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at System.Windows.Application.Run()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at TestFGDB.App.Main()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 20:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/c-fgdb-api-crashing-on-some-systems-running-arcgis/m-p/689162#M1102</guid>
      <dc:creator>ArtUllman</dc:creator>
      <dc:date>2012-01-04T20:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: C# FGDB API crashing on some systems running ArcGIS 9.3.1</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/c-fgdb-api-crashing-on-some-systems-running-arcgis/m-p/689163#M1103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The API is not dependent on any of the ArcGIS libraries. You do need to have the Microsoft Visual C++ 2010 Run-time installed. Also be aware that the API can only open 10.0 file geodatabases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 21:11:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/c-fgdb-api-crashing-on-some-systems-running-arcgis/m-p/689163#M1103</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-01-04T21:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: C# FGDB API crashing on some systems running ArcGIS 9.3.1</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/c-fgdb-api-crashing-on-some-systems-running-arcgis/m-p/689164#M1104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; That explains it.&amp;nbsp; I ran a dependancy walker on the API DLLs and found that I was missing the Visual C++ Run in my deployment.&amp;nbsp; I added msvcp100.dll and msvcr100.dll to my deployment directory, and everything worked after that.&amp;nbsp; Thank you all of your help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 13:03:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/c-fgdb-api-crashing-on-some-systems-running-arcgis/m-p/689164#M1104</guid>
      <dc:creator>ArtUllman</dc:creator>
      <dc:date>2012-01-05T13:03:59Z</dc:date>
    </item>
  </channel>
</rss>

