Delphi XE Code Parser Error: "Expected"> ", but". " found."
There are two errors in this error handler. To fix them, you can
- delete the System. from
TArray<System.Byte>(in interface and implementation) - add
IdSocketHandleto use list in interface
I have not researched yet, but after these changes, the code can be compiled.
So the full code will be
unit Unit12; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, IdSocketHandle, // <-- added IdBaseComponent, IdComponent, IdUDPBase, IdUDPClient, IdUDPServer; type TForm12 = class(TForm) IdUDPClient1: TIdUDPClient; IdUDPServer1: TIdUDPServer; procedure IdUDPServer1UDPRead(AThread: TIdUDPListenerThread; AData: TArray<Byte>; ABinding: TIdSocketHandle); private { Private declarations } public { Public declarations } end; var Form12: TForm12; implementation {$R *.dfm} procedure TForm12.IdUDPServer1UDPRead(AThread: TIdUDPListenerThread; AData: TArray<Byte>; ABinding: TIdSocketHandle); begin // end; 