We are using TScSFTPClient in our Delphi application in order to download a file to local file system.
The used code looks like this:
Code: Select all
...
var
lScSFTPClient: TScSFTPClient;
begin
lScSFTPClient := TScSFTPClient.Create(nil);
try
lScSFTPClient.SSHClient := fScSSHClient;
try
lScSFTPClient.Initialize;
lScSFTPClient.DownloadFile(pSource, pLocalPath, True);
except
on e: EScError do begin
//Some exception handling here
end;
end;
finally
lScSFTPClient.Free;
end;
end;
Here is the relevant part of the callstack of this EAccessViolation:
Code: Select all
exception class : EAccessViolation
exception message : Access violation at address 000000000040E305 in module 'Project.exe'. Read of address FFFFFFFFFFFFFFFF.
thread $3248:
0040e305 Project.exe System TObject.Free
021de5c8 Project.exe ScSFTPClient 631 +7 TScSFTPRequestInfo.Destroy
0040e305 Project.exe System TObject.Free
020d602d Project.exe ScTypes 647 +2 TCRObjectList.Notify
00541aff Project.exe System.Classes TList.SetCount
0054134d Project.exe System.Classes TList.Clear
005412be Project.exe System.Classes TList.Destroy
0040e305 Project.exe System TObject.Free
021de813 Project.exe ScSFTPClient 672 +4 TScSFTPClient.Destroy
0040e305 Project.exe System TObject.Free
...
SecureBridge v8.1.2
Delphi RAD Studio 10.2 (Release 3)
Applies to 32 and 64 bit builds
Is this a known issue?
Do you have any idea/fix for use?
Thx, Ajoschi!