Login  
Search All Forums
Dart Home | PowerTCP FTP for ActiveX | Custom Development Reply | PowerTCP FTP for ActiveX Topics | Forums   
AuthorForum: PowerTCP FTP for ActiveX
Topic: PowerTCP FTP Non-Event Driven Progress Bar?
MetricoWireless

From: Ashburn, VA USA
Posts: 3
Member Since: 12/09/03
posted December 9, 2003 6:19 PM

I am obviously pretty new to this forum. I am hopeful to have a simple, but not stupid question: Is there a simple way to create a file-transfer progress bar that is NOT 'ftp1.Progress' event driven?

Perhaps an easier way to think of it is this: I would like to 'sample' the throughput and file progress every X milliseconds and update my progress bar, regardless of ftp1.progress. If no data was transferred, I would like the status bar to say '0 bytes/sec'.

My question stems from the fact that if No data is being transferred during a ftpStore or ftpRetrieve, No progress event is fired, and No throughput and/or file status is updated. I am currently using some code from the PowerTCP FTP -> VB 6.0 -> FtpListView samples. I have noticed that during periods of 'Idle' transfer (meaning no data is being sent or retrieved during an FTP exchange), that the File Progress Bar and Throughput are Not updating. This has me very frustrated. I would like to simply create a progress bar that is 'Sample Rate' dependant and not event driven.

Can someone point me in the right direction and/or provide sample code that could accomplish this?

Any help is greatly appreciated!
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 10, 2003 8:44 AM

I don't understand what you are trying to. Why would you expect a progress bar to "update" if there is no data being transferred?
MetricoWireless

From: Ashburn, VA USA
Posts: 3
Member Since: 12/09/03
posted December 10, 2003 9:49 AM

Hi Tony. Thanks for taking the time.

I would like to measure Throughput as a function of time; to characterize the throughput of a data exchange. My company benchmarks throughput on different wireless devices. We are more interested in the file transfer from a throughput perspective than the data being transferred itself.

I understand your confusion. It does sound silly to have a progress bar update if nothing is happening, but our customer wants to measure all facets of the data exchange itself; not the data. This would answer, "is the throughput on this wireless device stable and consistent?" or "is the throughput sporadic and bursty?" 

Does that make more sense?

Is there an easy way to code this?

Thanks again,
Jeff
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 10, 2003 9:56 AM

What if you put a timer on your program that fires every X seconds and displays an "Idle" message? Then if the progress event fires update the same message. This way the only time you would see "Idle" would be if the progress event had not fired for X seconds.
MetricoWireless

From: Ashburn, VA USA
Posts: 3
Member Since: 12/09/03
posted December 10, 2003 10:16 AM

Hmmm. That's a good suggestion. Actually, I started down that path yesterday, but then realized that my program already has three timers and wondered if that would be an issue.

My experience with timers is that they are not exact. I have occasions where Windows doesn't fire the timer event 'on time' and data is sometimes lost. This is particularly true with ftp1 is in the process of retrieving or storing data. I can't seem to replicate the problem on demand and it doesn't happen often, but it does happen.

That's when I stopped and posted the question.

Is there a 'neater' way of doing this? Something more concise or exact?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted December 11, 2003 8:46 AM

I guess I still don't entirely understand what you are trying to do. Can you think of some other application that I may know that does something similar?

Reply | PowerTCP FTP for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX