[fpc-devel] [arm] tStream.position

Mattias Gärtner nc-gaertnma at netcologne.de
Thu Dec 10 16:26:18 CET 2009


Zitat von Dariusz Mazur <darekm at emadar.com>:

> Hi
> there is problem with something like that
>
>
> var
>  ts : tStream;
> begin
>  ts:=tStream.create;

ouch.
TStream is an abstract class.
Maybe the keyword 'abstract' should be added, so that the compiler warns.


>  ts.position:=2;
> // here arm write ERange Error
> // on trace setPosition
> //  is very big number, like 15300000000000,,,,
>  ts.free;
> end;
>
>
> platform : ARM with soft float

It is wrong on every platform.

Mattias





More information about the fpc-devel mailing list