NetTalk Central

Author Topic: FTP Error Sending Data  (Read 3822 times)

rupertvz

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
    • Email
FTP Error Sending Data
« 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?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: FTP Error Sending Data
« Reply #1 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

rupertvz

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
    • Email
Re: FTP Error Sending Data
« Reply #2 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?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: FTP Error Sending Data
« Reply #3 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

rupertvz

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
    • Email
Re: FTP Error Sending Data
« Reply #4 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?


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11171
    • View Profile
Re: FTP Error Sending Data
« Reply #5 on: August 23, 2018, 02:46:31 AM »
It's better to suppress the error message.