On one of my PowerBuilder apps, this strange thing happens: on 99% of the machines where the app is used, everything is fine. But there is one Win7 machine that throws this error:
Error code = 39
Error message = Error accessing external object property language at line 77 in constructor event of object uo_web
Error line = 77
That line corresponds to this code:
int li_rc
OleObject lnv_MSScript
lnv_MSScript = Create OleObject
// Create a script object to use for URL Encoding/Decoding
li_RC = lnv_MSScript.ConnectToNewObject ("MSScriptControl.ScriptControl")
If li_RC = 0 Then
lnv_MSScript.language ="javascript"
Else
Messagebox('Error', 'Unable to connect to script control. Return Code = ' + string(li_RC))
Return
End If
What could be causing this? I know that the app uses Internet Explorer, and we made sure the troubled PC has IE version 11. I also know that this line was added when we had trouble reading unicode data (nvarchar) from a (sql server) database to the app window.
If there are some debug data I may additionally provide, please indicate to me so, because I am not proficient in powerbuilder
enough to know this.