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: FTP Does not Support Multi Threads as it says
daliaessam

From: cairo, USA
Posts: 19
Member Since: 01/20/06
posted January 20, 2006 8:38 PM

I am using a licenced version, I tried both ActiveX control on a form and Dll refernce and create objects in VB 6 to run mutilple threads to connect to more than one ftp site at the same time, here is how it worked, it connects to the first site, once the second process starts, it hangs the first process and if you start a third process , it hands the second and so on, only the last process will work and all previous will hand until they timeout.

I tried placed the control on a form and the other way as you described for none visual forms:
http://support.dart.com/postings?topicid=2006&search=1

both led to the same results.

In Both methods I do create a new form which runs the FTP process:

  Dim frm As frmProcess
  Set frm = New frmProcess

and frmProcess is the form that have the code to connect to teh ftp site and process ftp retrive.

Can you please tell me if it realy supports the multithreads or not and can you post the min. code that can do this.
Thank you
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 20, 2006 11:08 PM

If you are using VB6, then you are using a single thread, unless you are doing a lot of coding that you don't mention in this thread. Writing multi-threaded apps is a rather advanced topic and is not something that can be easily taught on the forum.

However, from what I can tell, it sounds like what you really want to do is not necessarily write a multithreaded app but rather an app that allows for simultaneous FTP transmissions. If that is the case then what you want to do is use multiple controls on the same form in non-blocking mode (timeout = 0, actions controlled via the events)

Take a look at the online help descriptions on non-blocking (also known as asynchronous) usage.

Since you have a licensed version, I would also suggest that you contact support directly to find out about the more advanced support options that are available to you.
daliaessam

From: cairo, USA
Posts: 19
Member Since: 01/20/06
posted January 21, 2006 3:11 AM

Tony,

Thank you for the fast reply, Yes what you said is exactly what I need:

simultaneous FTP transmissions

My application loads the same new form with teh DartFTP at different times to download ftp sites, it is not mutli threaded, it is single threaded.

I will try to do what you said even it will be buggy code since I do not know how many instances can be used.

The question is , Can I use the control in an array, I mean make control array from it?

thank you
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 21, 2006 11:02 AM

Yes, the control can be used in an array.
daliaessam

From: cairo, USA
Posts: 19
Member Since: 01/20/06
posted January 22, 2006 2:03 AM

Controlarray, or even multiple instances on different forms even did not help in blocking mode. Can you please post basic code for working in none blocking mode.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted January 23, 2006 10:29 AM

Here is a link to a simple sample that I wrote.
It shows how to download 3 files simultaneously:

http://support.dart.com/downloads/ThreeFtp.zip

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