Ftp_Connection.CreateInstance takes too long to load

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Post Reply
Posts: 1
Joined: Fri Nov 20, 2009 7:43 pm

Ftp_Connection.CreateInstance takes too long to load

Post by carlos357 » Fri Nov 20, 2009 7:53 pm


I am using the library version but plan to upgrade as soon as the 2.0 is released.

Debugging my program I noticed that this call (C++):


Takes too long. Sometimes two or three seconds.

Is that normal?
Is it fixed in the new version?

I also noticed that it happens the same thing in the Win32 sample that comes with the library installer.


Posts: 12031
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)

Re: Ftp_Connection.CreateInstance takes too long to load

Post by mb » Fri Nov 20, 2009 7:57 pm

Hello carlos ...

I do not see such a problem. Creating a COM object is generally not so cheap. First the system has to lookup the CLSID in the registry. Then it loads the .dll and at the end creates object through the factory method. On a modern system this shouldn't take seconds though.

Maybe try it with the latest 1.5 version first.

Last edited by mb on Fri Nov 20, 2009 7:58 pm, edited 1 time in total.

Post Reply