4 Replies Latest reply on Feb 22, 2012 1:59 AM by artur.redzko

    Operate on empty table

    artur.redzko
      When I check a table extent using ltable->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->Search(...,enumrows) , then at enumrows->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?

      Regards
      Artur