Jump to content


Photo

ftpErrorLicense


  • Please log in to reply
4 replies to this topic

#1 pro510

pro510
  • Members
  • 33 posts

Posted 03 March 2006 - 08:56 AM

My application uses the ftp client in many threads at once to communicate with many ftp servers at once. Sometimes when logging on I would get ftpErrorLicense returned. To get around this problem I have placed the create instance, logging on, and logging off in a critical section. Should I need to do this given that I am using the MTA version of the client?

Thanks,
Graham

#2 mb

mb

    Developer

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

Posted 03 March 2006 - 04:20 PM

Please make sure you are using the latest version of the FTP Library. There was a small problem in an earlier version.

Regards,
-Mat

#3 pro510

pro510
  • Members
  • 33 posts

Posted 08 March 2006 - 10:38 AM

This work a lot better now thanks. It does appear though that LoadLicenseKeyData is not thread safe, but I can live with that.

Thanks,
Graham

#4 mb

mb

    Developer

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

Posted 08 March 2006 - 07:29 PM

Hello ..

I've added the additional critical section to the LoadLicenseKeyData and LoadLicenseKeyFile methods. The patch will be in the next build.
The Global is implemented as a singleton. Therefore in your sample application you only have to call the LoadLicenseKey* method once and not every time you create a new FTPConnection object.

Regards,
-Mat

#5 pro510

pro510
  • Members
  • 33 posts

Posted 09 March 2006 - 10:03 AM

Thanks.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users