08-18-2008 04:46 AM
Hello,
When someone uses the Labview VI "FTP Put File.VI", the FTP connection is in the end closed by the VI "FTP Registry.VI" with parameter "function" set to "unregister".
Unfortunately, in case of an error during the FTP transmission, the VI "FTP Registry.VI" will not do anything. Especially, according to me, it will not unregister the connection and thus will not free the memory used by the connection.
In other words, I think that in the VI "FTP Close Session.VI" the error wire should not be connected to "FTP Registry.VI".
Is it correct?
08-21-2008 04:49 AM
07-29-2011 06:12 PM
Three years later, and I find this same bug is in LabVIEW 2010.
In my case, my custom FTP client polls the connection. If it finds that the connection has been lost, it closes everything on this end so that the user can then reopen the connection. Part of this process is to call the FTP Close Session.vi, which issues the QUIT command and then unregisters the session. However, since the connection has been lost, the QUIT command throws an error and the session does not become unregistered. The program then cannot re-open a connection to this same address.
This is simple error handling for any Close type of operation. Errors on the input of close operations should not prevent the operation from completing and freeing any resources. In this case it is the Unregister that needs to ignore the input error, as discussed in the original two posts.
DaveT