Re: EXW caused an invalid page fault

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

Kat writes:
> Imagine how amazed i was that it puts() to the screen ok, 
> but nothing got puts()'d to the harddrive. There 
> were no errors, the writefile was created, but it was empty.

When you puts() to the screen it gets written right away. 

When you puts() to a file, it gets written to a buffer in memory.
When the buffer gets full (about 8k bytes I think), the whole
8K gets written to disk and the buffer is reset.

You can force the data to disk by calling flush(), or close().
When the interpreter terminates, it calls close() for you.

If the interpreter is terminated prematurely, the buffer won't
be written out. Euphoria-reported errors such as 
subscript out of bounds are ok, but O/S-reported
errors and CauseWay errors (on DOS) could leave
you with up to 8K of data missing. This often means
that a file you were writing is 0-bytes on disk.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu