Tredell
Hi,
I'm having a strange problem where the SFTP library crashes cscript.exe on obj.Connect(). This only occurs when I read the license key from a file (LoadLicenseKeyFile). If I use the LoadLicenseKeyData method from the example:
[indent]If obj.LoadLicenseKeyData(strKey) Then
WScript.Echo "Success"
Else
WScript.Echo "Failed"
End If[/indent]
It always drops to the failed condition and the log file displays (I believe it only continuesbecause the DLL has not expired yet):
[indent]20090811 14:54:56.922 Thread(6860) Log file opened. LogLevel=7
20090811 14:54:56.926 Thread(6860) CLicenseKey::LoadData()
20090811 14:54:56.926 Thread(6860) CLicenseKey::LoadDataText()
20090811 14:54:56.926 Thread(6860) CLicenseKey::LoadDataXML()
20090811 14:54:56.954 Thread(6860) Log file closed.[/indent]
The LoadLicenseKeyFile method does, however, successfully validates eventhough it causes the crash of Cscript.exe.
I'm having a strange problem where the SFTP library crashes cscript.exe on obj.Connect(). This only occurs when I read the license key from a file (LoadLicenseKeyFile). If I use the LoadLicenseKeyData method from the example:
[indent]If obj.LoadLicenseKeyData(strKey) Then
WScript.Echo "Success"
Else
WScript.Echo "Failed"
End If[/indent]
It always drops to the failed condition and the log file displays (I believe it only continuesbecause the DLL has not expired yet):
[indent]20090811 14:54:56.922 Thread(6860) Log file opened. LogLevel=7
20090811 14:54:56.926 Thread(6860) CLicenseKey::LoadData()
20090811 14:54:56.926 Thread(6860) CLicenseKey::LoadDataText()
20090811 14:54:56.926 Thread(6860) CLicenseKey::LoadDataXML()
20090811 14:54:56.954 Thread(6860) Log file closed.[/indent]
The LoadLicenseKeyFile method does, however, successfully validates eventhough it causes the crash of Cscript.exe.