SFTP ondata event problem

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

SFTP ondata event problem

Post by snorkel » Thu 27 Oct 2011 16:02

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?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 28 Oct 2011 13:58

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.

snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Post by snorkel » Fri 28 Oct 2011 16:28

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.

Post Reply