Re: TStringGrid



On 14 Apr 2005 01:30:21 -0700, alanglloyd@xxxxxxx wrote:

>No - possibly it should be WriteBuffer for both, so that an exception
>is thrown if it fails. I think that code was written in dubious mode
><g>.

I get the point
- silent errors are tricky
- I've just checked and it looks for Zero write bytes before writing
- not a problem nowadays - but lethal under MSDOS

>But once a file (stream) is satisfactorily opened I wonder what the
>base cause would be of any errors which could cause a write failure
>(particularly on a single PC).

Unrecoverable for sure

One thing .. I once got burnt by Write( S[1], Length( S ) )
- when S was zero length

- the upside was it got me to turn on range checking
- permanently
<G>


.



Relevant Pages

  • Re: New version of John Hayes tester
    ... and the absolute test passes. ... But zero is special -- there's no way to say that a nonzero x is ... The above F= test is superfluous unless ABS-NEAR is set to zero. ... = y and relative comparison fails in which I wouldn't want to ...
    (comp.lang.forth)
  • Re: when can realloc fail?
    ... But a call to realloc() with size set to zero is equivalent to free, ... All we're told is that realloceither fails or it ...
    (comp.lang.c)
  • Re: division by 7 without using division operator
    ... integer for which it fails? ... It depends on the implementation's precision and the rounding mode. ... the exact difference ... towards zero, ...
    (comp.lang.c)
  • Re: .999... ?= 1
    ... >>value zero, no matter whether it is seen from the left or from the right. ... > Mathematics", by Chris Mortensen? ... > fails). ... at least as concerns the practical needs. ...
    (sci.math)