We are currently calling to scripts via the RunCode DLL interface.
The problem we are having is we want the ability to cancel these scripts from the external source.
The problem we've found is the DLL interface doesn't have a Stop function (as is the case in the OCX interface). To stop execution of the script.
We tried calling to cleanup, but that resulted in an exception (attached).
How can we (through the DLL interface) stop a currently running script, so we can cleanup and run another script ?
Canceling running script through DLL interface
Moderators: JRL, Dorian (MJT support)
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: Canceling running script through DLL interface
Hi,
There is a Stop function (the OCX is a wrapper for the DLL, so what the OCX can do the DLL must do). Maybe it is missing from the DLL section of the reference. The function definition is:
function Stop: integer; stdcall;
The parameter is reserved, and you can pass anything.
e.g. Stop(0);
There is a Stop function (the OCX is a wrapper for the DLL, so what the OCX can do the DLL must do). Maybe it is missing from the DLL section of the reference. The function definition is:
function Stop: integer; stdcall;
The parameter is reserved, and you can pass anything.
e.g. Stop(0);
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?