Re: Not closing search cursor

2022-07-13 Thread Maxim Solodovnik
try (SearchCursor searchResults = search( …);) { . } :))) On Thu, 14 Jul 2022 at 02:11, Shawn McKinney wrote: > > Hello, > > Recently noticed the fortress code is not closing the search cursor. Take the > GroupDAO.find[1] example (listed below). > > Same pattern across the codebase

Not closing search cursor

2022-07-13 Thread Shawn McKinney
Hello, Recently noticed the fortress code is not closing the search cursor. Take the GroupDAO.find[1] example (listed below). Same pattern across the codebase despite clear warnings in the doc: "Don’t forget to close the cursor, otherwise the associated data remains in memory forever (causing