Re: Simple Euphoria Suggestion

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu