Re: Simple Euphoria Suggestion
- Posted by Robert Craig <rds at RapidEuphoria.com> Sep 25, 2003
- 422 views
Lucius Hilley wrote: > It was not writing out buffered data at the time I created elog.e > Each call to my routine would: > open the log file > write a line to it. > close the log file You probably needed that in the case of machine-level exceptions. Prior to 2.4, if your program poked into a bad place in memory, or otherwise caused a machine-level exception, the interpreter would not recover, so you wouldn't get an ex.err, and your files wouldn't be flushed. With a normal Euphoria error (e.g. subscript out of bounds) files have always been flushed. The main reason for closing files, other than being neat and tidy, is that each open file uses a bit of memory, and all operating systems place a limit on the number of simultaneously open files. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com