NetTalk Central

NetTalk FTP => FTP - Ask For Help => Topic started by: rupertvz on August 16, 2018, 01:41:22 AM

Title: FTP Error Sending Data
Post by: rupertvz on August 16, 2018, 01:41:22 AM
Hi Bruce,

I am only using FTP templates to receive data,

I am receiving this error in my FTP application, but also in the demo app (only receiving files)

What does this mean?
Title: Re: FTP Error Sending Data
Post by: Bruce on August 16, 2018, 10:16:02 PM
it means you are doing a QUIT on your side, but the server has already closed the connection.
You can ignore this error. (you can detect, and suppress it in .ErrorTrap)

cheers
Bruce
Title: Re: FTP Error Sending Data
Post by: rupertvz on August 21, 2018, 01:20:43 AM
Thank you Bruce,

I am able to detect "Quit" in .ErrorTrap, but the "error" message comes up before the error-trap.
Is there still a way to suppress the error in ErrorTrap?

I removed the line of code "ThisFTPControl.Quit()" from the GetNextFile (Routine) and PutNextFile (Routine),
Which then omits the error message.

I will be compiling my application into a service.
Is it OK to omit the the "Quit" lines of code?
Title: Re: FTP Error Sending Data
Post by: Bruce on August 22, 2018, 06:29:20 AM
It comes up in the PARENT call in error trap. Embed your code before the parent call, and don't call the Parent call in that case.

cheers
Bruce
Title: Re: FTP Error Sending Data
Post by: rupertvz on August 22, 2018, 11:40:18 PM
Thank you Bruce,

Can I simply omit the code "ThisFTPControl.Quit()" from the GetNextFile (Routine) and PutNextFile (Routine)

Or is it better to suppress the error message instead?

Title: Re: FTP Error Sending Data
Post by: Bruce on August 23, 2018, 02:46:31 AM
It's better to suppress the error message.