procedure TForm1.UDPUDPRead(AThread: TIdUDPListenerThread;
AData: array of Byte; ABinding: TIdSocketHandle);
var
buffer : TBytes;
begin
SetLength(buffer, Length(AData));
buffer := @AData[0];
end;
This code results in an access violation.
What would be the proper way to convert from array of byte to TBytes in Delphi XE3?
ADataparameter be ofTIdBytestype ? (TUDPReadEvent) - TLama