Re: Not closing search cursor

2022-07-15 Thread Shawn McKinney
> > On Jul 13, 2022, at 9:09 PM, Maxim Solodovnik wrote: > > try (SearchCursor searchResults = search( …);) { >. > } > > :))) > On Jul 14, 2022, at 10:50 PM, Emmanuel Lécharny wrote: > > > I have updated the doco to show how to use the try-with-resource. > > Thanks ! Hey Maxim

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