Okay, thanks. Leslie
On 2021-10-31 10:16:16 Rick McGuire wrote: > Taking a quick look at the code, reusing the stream object will cause a > memory leak and potentially leave you with open file handles. > > Rick > > On Sat, Oct 30, 2021 at 11:28 AM Erich Steinböck > <erich.steinbo...@gmail.com> > > wrote: > > can I reuse fileStream somehow? There seems to be no way to associate > > > >> fileStream with a different file > > > > Hi Leslie, > > in fact this can be done by calling INIT directly. > > > > ~~~ > > s = .Stream~new("") > > do i = 1 to 99 > > s~init(i) > > s~~open("write replace")~~charOut(i)~close > > end > > ~~~ > > > > I occasionally considered doing this (e. g. for File or DateTime objects) > > and have asked a respective question a few months ago on the Dev list. > > I really don't know if calling INIT repeatedly is a supported concept - > > at least we don't run any tests for it. > > Until we know better, I couldn't recommend using it. > > > > > > _______________________________________________ > > Oorexx-devel mailing list > > Oorexx-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/oorexx-devel -- Operating System: Linux Distribution: openSUSE Leap 15.3 x86_64 Rexx Interpreter: ooRexx Version 5.0.0 r12286 Build date: Aug 12 2021 _______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel