Broken in Delphi XE?
Posted: Mon 24 Jul 2017 04:03
I've been using the SecureBridge components in Delphi XE2 and up for quite a while and they work nicely.
I recently had need to add SFTP support to an older application that is still maintained in Delphi XE (because of a couple of major component sets it uses).
SecureBridge installs in XE, so didn't think it would be a problem. But several of the events in the ScSFTPClient component raise an error when I double-click them to create an event-handler. The error is: "Expected '>' but '.' found."
The problem is that an XE2 and newer uses dotted-namespace unit names and XE does not. For example, the handler for OnDirectoryList would be this:
which works fine in XE2 but breaks in XE on the period in <System.Byte>.
Will there be an update to fix this? Is there a work-around in the meantime?
Thanks,
David.
I recently had need to add SFTP support to an older application that is still maintained in Delphi XE (because of a couple of major component sets it uses).
SecureBridge installs in XE, so didn't think it would be a problem. But several of the events in the ScSFTPClient component raise an error when I double-click them to create an event-handler. The error is: "Expected '>' but '.' found."
The problem is that an XE2 and newer uses dotted-namespace unit names and XE does not. For example, the handler for OnDirectoryList would be this:
Code: Select all
procedure ScSFTPClientDirectoryList(Sender: TObject; const Path: string; const Handle: TArray<System.Byte>; FileInfo: TScSFTPFileInfo; EOF: Boolean);
Will there be an update to fix this? Is there a work-around in the meantime?
Thanks,
David.