Shouldn't you close (delete) the FTP request handle (only) in the callback?
No it should not be deleted in the callback, as a copy is used there which will be deleted automatically after the callback. It should be deleted after making a request or when not used anymore.
Thanks for reporting it, I found the problem. I've forgot to close the file after downloading, thats why it was empty. This is fixed now.
But the "GetInputFile" part does not make sense. The input file is only set when uploading stuff to a FTP server.
Update to System2 v3.2.1
- Automatically use 32-Bit 7-ZIP when 64-Bit is not executable
- Fix incomplete file when downloading files with FTP
- Added libcurl certificate file for SSL instead of using system's certificate file
- Updated to the latest libcurl version