We are having an odd problem with the SearchResultsListing object, in code that (I swear) used to work fine. We have tried TK 10.1, 10.2, 9.2 all with the same result. It's all very conventional, searching with:
Dim SearchResults As SearchResultListing
From there we do the search, and get the expected number of hits. Then as we try to iterate through the results, it blows up on the third iteration every time. It does not matter whether there are three results returned or five - meaning that we do not seem to be hitting any out of range conditions. The error message is the incredibly un-useful, "Operation is not in progress." Here is a little test loop we set up, basically doing nothing but iterating through the results:
For nIndex = 1 To ResultSet.RowsCount Dim DocInfo = ResultSet.GetEntryInfo(nIndex) Next nIndex
Disposing of DocInfo between iterations does not change anything.
This also happens when using ResultSet.RowCount (singular Row vs. plural Rows) It does not matter whether the results are from documents only, folders only, or a mix of both.
I feel like I have seen and used code like this a million times. Any thoughts or ideas on what may be different? TIA -