Jump to content
Ian Branch

Error in latest IdIOHandler.

Recommended Posts

Just downloaded Indy 10 rev 3902.

D10.4.2, Win 10.

When building my project I get an error in IdIOHandler..

function TIdIOHandler.ReadInt16(AConvert: Boolean = True): Int16;
begin
  EnsureInputBytes(Self, SizeOf(Int16));			<<   Error here..
  Result := Int16(InputBuffer.ExtractToUInt16(-1, AConvert));
end;

The error is..

"[dcc32 Error] IdIOHandler.pas(1285): E2010 Incompatible types: 'Integer' and 'TIdIOHandler'"

 

Regards,

Ian

Share this post


Link to post
29 minutes ago, Ian Branch said:

The error is..

"[dcc32 Error] IdIOHandler.pas(1285): E2010 Incompatible types: 'Integer' and 'TIdIOHandler'"

Fixed

Edited by Remy Lebeau

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×