Skip to content

Access Violations after Acccessing ScriptControl.Error object #27

Description

@CharlieHeaps

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions