-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Calling TSC64.dll (v1.2.4) from Delphi. with a TScriptControl object. I'm having problems with handling errors in scripts. When a script has an error in it ScriptControl.ExecuteStatement does not generate an Exception (MSScript control does). TSC64.dll does report back the errors in the form of ScriptControl.Error.Line, ScriptControl.Error.Column, ScriptControl.Error.Description etc. but then generates access violations in Delphi in the _IntfClear routine. I understand that these errors are related to using an interface on a class which does not implement reference counting (I'm not expert enough to dig deeper on that).
Note: If I comment out code referring to the ScriptControl.Error object my code runs fine (although I cannot report errors), but with those references included I get access violations even if the script itself has no errors.
Can you help? Thanks in advance!