Unable to exit after running Session.SynchronizeDirectories
After recently adding an automatic download ftp feature with WinSCP to my (VBA) Access database, which works fine, Access no longer exits when I close it. By breaking my code at various points and then trying to exit it, I narrowed it down to the following statement:
I compiled the assembly from the latest stable version of WinSCP (5.1.7). My database also uses other features of WinSCP (creating remote directories, moving remote files, downloading files) with no problem. The synchronization also works, but then I can't exit Access afterwards. This occurs on both Access 2003 and 2007, and with my ftp server that it's really supposed to download from as well as my local server that I made for development/testing purposes. (Both are sftp, if that's relevant.)
Thank you.
sess.SynchronizeDirectories SynchronizationMode_Local, info!RTFFolder, _ info!BasePDFFolder & "/" & PDFFolders!Name, False, , , _ syncOptions
Thank you.