<?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 Problem with closing database in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259660#M430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I made a C wrapper dll to expose simple API for using SDK 1.1 and noticed that opening more than one layer from the same database ( .gdb using client app) causes hanging upon CloseGeodatabase execute.&amp;nbsp; If there is only one layer opened, it can be closed without any problems. My question is do I have to share the same "connection to database" for different clients using dll to open any layer or can I open database for each request and return new handle?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Artur&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2012 10:49:26 GMT</pubDate>
    <dc:creator>ArturRedzko</dc:creator>
    <dc:date>2012-01-25T10:49:26Z</dc:date>
    <item>
      <title>Problem with closing database</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259660#M430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I made a C wrapper dll to expose simple API for using SDK 1.1 and noticed that opening more than one layer from the same database ( .gdb using client app) causes hanging upon CloseGeodatabase execute.&amp;nbsp; If there is only one layer opened, it can be closed without any problems. My question is do I have to share the same "connection to database" for different clients using dll to open any layer or can I open database for each request and return new handle?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Artur&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 10:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259660#M430</guid>
      <dc:creator>ArturRedzko</dc:creator>
      <dc:date>2012-01-25T10:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with closing database</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259661#M431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you closing the tables before attempting to close the geodatabase?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 15:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259661#M431</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-01-25T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with closing database</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259662#M432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes. I'm closing and clearing all resources and handles taken from database. The problem occurs even if I do the simplest scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- initialize dll for one client&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- open a database test.gdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- initialize dll for second client&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- open the same database test.gdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- try to close a database for first client&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's enough to hang the app (inside dll) on CloseGeodatabase. I noticed that inside the test.gdb directory a lock file is begin created. Sometimes after a long time of waiting the databases close. But in most cases I must kill the app. I tried to repeat the same situation using a simple console app that is using the same code as my dll bypassing the C wrapper and it works fine. I can create multiple access to the same database and close them without problems. So it looks like a dll issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 17:58:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259662#M432</guid>
      <dc:creator>ArturRedzko</dc:creator>
      <dc:date>2012-01-25T17:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with closing database</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259663#M433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you post your code. We have C++ tests for this and have seen no problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 18:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259663#M433</guid>
      <dc:creator>LanceShipman</dc:creator>
      <dc:date>2012-01-25T18:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with closing database</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259664#M434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Problem solved. I found this in your readme.txt :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;KNOWN ISSUES:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; * Concurrent access from Windows and Linux clients to the same File GeoDatabase can corrupt data. This combination should be avoided.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so I made a shared connection for the same database and it works fine now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope to see new update 1.2 with working spatial index soon.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Artur&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 09:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/problem-with-closing-database/m-p/259664#M434</guid>
      <dc:creator>ArturRedzko</dc:creator>
      <dc:date>2012-02-02T09:56:27Z</dc:date>
    </item>
  </channel>
</rss>

