Re: Can't compile last SVN: Error

Giganews Newsgroups
Subject: Re: Can't compile last SVN: Error
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Tue, 5 Jan 2010

"Fabrizio Monti" <monti.fabriz…@TheFabulousGoogleMail.com> wrote in =
message news:FF6ECF70FB9EE340monti.fabriz…@TheFabulousGoogleMail.com...

> IdTrivialFTPServer.pas(534) Error: E2251 Ambiguous overloaded call to =
'ReceiveBuffer'
> IdTrivialFTPServer.pas(634) Error: E2251 Ambiguous overloaded call to =
'ReceiveBuffer'
> IdTrivialFTPServer.pas(683)
> IndyProtocols100.dpk(262) Fatal: F2063 Could not compile used unit =
'IdTrivialFTPServer.pas'

Works fine for me.  There are three ReceiveBuffer() overloads in =
TIdUDPClient:

    1) function ReceiveBuffer(var ABuffer : TIdBytes; const AMSec: =
Integer =3D IdTimeoutDefault): Integer;

    2) function ReceiveBuffer(var ABuffer : TIdBytes; var VPeerIP: =
string; var VPeerPort: TIdPort; AMSec: Integer =3D IdTimeoutDefault): =
integer;

    3) function ReceiveBuffer(var ABuffer : TIdBytes; var VPeerIP: =
string; var VPeerPort: TIdPort; var VIPVersion: TIdIPVersion; const =
AMSec: Integer =3D IdTimeoutDefault): integer;

The call to ReceiveBuffer() in TIdTrivialFTPServer:

    i :=3D FUDPClient.ReceiveBuffer(Buffer, LPeerIP, LPeerPort);

Only matches one of them (#2), and thus cannot be ambiquious.

--=20
Remy Lebeau (TeamB)

Replies

In response to

Can't compile last SVN: Error posted by Fabrizio Monti on Tue, 05 Jan 2010