Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Lag when using Indy to delete an FTP file

Posted on 2004-09-11
3
Medium Priority
?
327 Views
Last Modified: 2010-04-05
When I delete a file from a remote FTP server using Indy 9.0 (or even IE) the file remains visible (to Indy) and readable for about 60 seconds. During that time, a second call to Delete it returns an exception but I can Put a file with the same name (replacing the original).

Has anyone run into this kind of thing?

Tom
0
Comment
Question by:tfield98
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 17

Expert Comment

by:geobul
ID: 12053246
Hi,

No, I haven't. And noone else hasn't obviously. What is that remote FTP server and what OS it's running on? Perhaps your request for deletion is being queued somewhere for further execution and the file is being locked or something. All this depends on the FTP server and/or the OS of the remote machine. I don't think you could do anything more.

Regards, Geo
0
 

Author Comment

by:tfield98
ID: 12054397
Hi, Geo,

We'veI concluded it is the FTP server version that's the problem. We're running NT 4.0 and  IIS 5.5.

I dug around with google and discovered a thread in a group regarding this same problem we are having with the delete lag. Both the poster and we are running an older version of IIS. I suspect that this is the problem. Since the server is in-house, we'll be upgrading later this year it to see if that makes a difference.
0
 
LVL 17

Accepted Solution

by:
geobul earned 500 total points
ID: 12055256
The server is the one that is creating the problem for sure. I've been using Indy 9 FTP client component for long time connecting to Unix and Windows based FTP servers and have had no problems deleting files. These programs communicate intensively getting hundreds of files daily and deleting them after downloading.

I have no experience using IIS though. Upgrading should solve the issue. There is nothing special in deleting a file on a FTP server using Indy, so I don't think it's your code that has to be changed.

Regards, Geo
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

671 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question