OnDirectoryList eventhandler for ScSFTPClient in C++Builder

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
ppirila
Posts: 2
Joined: Sun 25 Jan 2015 14:54

OnDirectoryList eventhandler for ScSFTPClient in C++Builder

Post by ppirila » Sun 25 Jan 2015 15:32

There seems to be a conflict in the parameters of OnDirectoryList event handler for ScSFTPClient in C++Builder. Activating the event handler in the RAD Studio XE7 development environment fails, but the event handler can be activated dynamically at run time with the command

ScSFTPClient->OnDirectoryList = ScSFTPClientDirectoryList;

placed in the constructot of the form, when ScSFTPClientDirectoryList is defined as the member method

void __fastcall ScSFTPClientDirectoryList(TObject *Sender, const UnicodeString Path, const TScSFTPFileHandle Handle, TScSFTPFileInfo *FileInfo, bool EOF);

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: OnDirectoryList eventhandler for ScSFTPClient in C++Builder

Post by ViktorV » Fri 30 Jan 2015 10:02

This is a known problem of the С++Builder XE7 compiler, and we can't influence it. As a workaround you can change TArray<System.Byte> to TBytes or TScSFTPFileHandle and assign the event handler in code at run-time instead of assigning it at design-time.

Post Reply