This content has been marked as final. Show 4 replies
If a call to Next does not return a row, it returns S_FALSE to indicate that fact. This is the expected behavior.
I don't know why you are getting an access violation. This will require some investigation.
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 ?
There should be no difference in the behavior of Next() between a table and a feature class.
What are the steps to reproduce this problem? This is not something that we have seen in the past.
1. having a table name from GetChildDatasets I use OpenTable on "Table" dataset type
2. Then make a Search with Envelope on this table to get enum rows
3. Then make Next on enum rows - here AV occurs
The same scenario works fine for "Feature Class" dataset type.