Jump to content


Photo

Ftp_Connection.CreateInstance takes too long to load


  • Please log in to reply
1 reply to this topic

#1 carlos357

carlos357
  • Members
  • 1 posts

Posted 20 November 2009 - 07:53 PM

Hello,

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

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

Ftp_Connection.CreateInstance(__uuidof(FTPConnectionMTA));

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.

Thanks

#2 mb

mb

    Developer

  • Administrators
  • 11527 posts
  • Gender:
    Male
  • Location:
    Worldwide

Posted 20 November 2009 - 07: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.

Regards,
Mat




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users