<?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: Operate on empty table in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415848#M694</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If a call to Next does not return a row, it returns S_FALSE to indicate that fact.&amp;nbsp; This is the expected behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why you are getting an access violation.&amp;nbsp; This will require some investigation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2012 16:01:28 GMT</pubDate>
    <dc:creator>DavidSousa</dc:creator>
    <dc:date>2012-02-16T16:01:28Z</dc:date>
    <item>
      <title>Operate on empty table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415847#M693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I check a table extent using ltable-&amp;gt;GetExtent(), for empty layer I get NAN values. This is fine as it's easy to check. But when I make first reading using ltable-&amp;gt;Search(...,enumrows) , then at enumrows-&amp;gt;Next() I get access violation at 54D8D99E in FileGDBAPID.dll (Read of address 00000000) exception. How can I avoid this error? How to check if Search returns EOF so I can skip Next? I assume that these functions should return a result code to notify EOF what works fine for not empty layers. Is this a bug in SDK? &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, 16 Feb 2012 12:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415847#M693</guid>
      <dc:creator>ArturRedzko</dc:creator>
      <dc:date>2012-02-16T12:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Operate on empty table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415848#M694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If a call to Next does not return a row, it returns S_FALSE to indicate that fact.&amp;nbsp; This is the expected behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know why you are getting an access violation.&amp;nbsp; This will require some investigation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 16:01:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415848#M694</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2012-02-16T16:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Operate on empty table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415849#M695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My fault. I didn't check that I tried to operate on Table, not on Feature Class returned from GetChildDatasets(). So as you wrote for Feature Class if a call to Next does not return a row, it returns S_FALSE to indicate that fact. But why it fails for Table type ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Artur&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 18:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415849#M695</guid>
      <dc:creator>ArturRedzko</dc:creator>
      <dc:date>2012-02-16T18:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Operate on empty table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415850#M696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There should be no difference in the behavior of Next() between a table and a feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What are the steps to reproduce this problem?&amp;nbsp; This is not something that we have seen in the past.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 15:32:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415850#M696</guid>
      <dc:creator>DavidSousa</dc:creator>
      <dc:date>2012-02-21T15:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Operate on empty table</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415851#M697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. having a table name from GetChildDatasets I use OpenTable on "Table" dataset type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Then make a Search with Envelope on this table to get enum rows&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Then make Next on enum rows - here AV occurs&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The same scenario works fine for "Feature Class" dataset type.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 09:59:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/operate-on-empty-table/m-p/415851#M697</guid>
      <dc:creator>ArturRedzko</dc:creator>
      <dc:date>2012-02-22T09:59:29Z</dc:date>
    </item>
  </channel>
</rss>

