I've bet the farm on using EDTFTP/.NET (V1.2.5) the free version, for a complex multi FTP upload program for upgrading mobile radio networks.
It's multi-threaded but each thread maintains it's own FTPConnection, it works fine and I limit the number of concurrently active threads to five, it works fine,
EXCEPT about once a week the FTP upload doesn't seem to fire the BytesTranferred events and my application hangs and consumes a large amount of system
memory, there's nothing to do but kill it, upon executing again it works.
I assume the problem is in my code, but this is so hard to debug as it happens only every so often so I'd just thought I'd post here in the hope someone
has any idea what is happening or has had a similar experience.
I naturally am assuming the problem is in my code, it appears that on very rare occasions I loosed the event binding, here's the code:
m_BsrFTPConnection->BytesTransferred += new BytesTransferredHandler( pDspTx, &CDspTx::UpdateTransferProgress );
m_BsrFTPConnection->UploadFile( pDspTx->ExecutablePath, pDspTx->ExecutableName );
m_BsrFTPConnection->BytesTransferred -= new BytesTransferredHandler( pDspTx, &CDspTx::UpdateTransferProgress );
My code in C++ using Framework 1.1.
The FTPConnection's that I use ConnectMode = FTPConnectMode::PASV
I shall purchase the version with support for the next phase of the project.