[fpc-devel] [arm] tStream.position
Dariusz Mazur
darekm at emadar.com
Thu Dec 10 16:59:05 CET 2009
Mattias Gärtner pisze:
> 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.
No,
I've start form tMemoryStream
there is property position
which invoke setPosition
which invoke seek
abstract does'nt matter
>
>
>> 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
>
--
Darek
More information about the fpc-devel
mailing list