Topic "Unable to exit after running Session.SynchronizeDirectories"

Author Message
clum

Guest


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:
Code:
sess.SynchronizeDirectories SynchronizationMode_Local, info!RTFFolder, _
                info!BasePDFFolder & "/" & PDFFolders!Name, False, , , _
                syncOptions

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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25014
Location: Prague, Czechia
What does not exit?
- Session.SynchronizeDirectories
- or Access, if it ran (and finished) Session.SynchronizeDirectories anytime during its run?
clum

Guest


Access, if it ran SynchronizeDirectories.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25014
Location: Prague, Czechia
Please email me a full debug log file showing the problem (using the latest version of WinSCP).

To generate log file, set Session.DebugLogPath. You may want to remove data you consider sensitive, such as host names, IP addresses, account names or file names. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.

_________________
Martin Prikryl
clum
[View user's profile]

Joined: 2013-10-07
Posts: 1
I sent you the debug log. Thank you for your help.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License