Hello all,

is this intended behavior or it is a bug that iostream.Position always returns -1?
In iostream unit I see that there is

<...>
 TIOStream = class(THandleStream)
 private
   FType : longint;
   FPos : Int64;
<...>

but if I use code like:

<...>
var
 iostream: TIOStream;
begin
 iostream := TIOStream.Create(iosInput);
 iostream.Position; // = -1
iostream.Read(bufferin, 10); iostream.Position; // = -1
end;
<...>

I don't get the right Position value...


Regards,
Zilvinas Ledas


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to