Page 1 of 1

SFTP ondata event problem

Posted: Thu 27 Oct 2011 16:02
by snorkel
I am on delphi XE with the last version 3 update and when I add a ondata event
It creates this:

procedure sftpData(Sender: TObject; const FileName: string; const Handle,
Buffer: TArray; Offset, Count: Integer; EOF: Boolean);


Delphi XE does not like the Tarray

Any ideas on why it's doing this when I add the event?

Posted: Fri 28 Oct 2011 13:58
by Dimon
This is a known problem with XE.
As a workaround you should change TArray to TBytes and assign the event handler in code at run-time instead of assigning it at design-time.

Posted: Fri 28 Oct 2011 16:28
by snorkel
Dimon wrote:This is a known problem with XE.
As a workaround you should change TArray to TBytes and assign the event handler in code at run-time instead of assigning it at design-time.
Thanks,
did some digging and found that out, hard to believe they didn't fix that in the first update to XE. oh well.