pro510
We have been using SmartFTP library version 1.5 for several years now. We recently upgraded to version 2 because of a random crashing error in 1.5. Version 2.0 fixed the crashing error, but now we have a new issue. On rare occassions, we get an Error 17 - ftpErrorLicense. This will continue to happen until our application is restarted. The code to initialize the license key has not changed from 1.5. The code we use to write the licence key is show below and we only call this once at the start of our application.
Any suggestions on what this may be?
Thanks,
Graham
Any suggestions on what this may be?
Thanks,
Graham
sfFTPLib::IGlobalPtr pGlobal;
if (SUCCEEDED(pGlobal.CreateInstance(__uuidof(sfFTPLib::Global))))
{
// Load the licence file into the DLL
if (pGlobal->LoadLicenseKeyData(_szLicence))
{
m_bCreated = TRUE;
}
else
{
AfxMessageBox(_T("Failed to load FTP license key data."), MB_ICONERROR);
}
}
else
{
AfxMessageBox(_T("FTP not found."), MB_ICONERROR);
}