ApplicationAbortAgent

Top  Previous  Next

Prototype

 

ApplicationAbortAgent(intAgent)

 

Description

 

Abort the processing of an agent.

 

Parameters

 

intAgent: integer that represents the number of the agent (i.e. fo the thread of image processing); to abort current agent you can use the automatic _CurrentAgent constant.

 

Returned value

 

None.

 

Notes

 

None.

 

Example

 

// Ensures that the script is executed just by one agent at time

if _CurrentAgent<>1 then ApplicationAbortAgent(_CurrentAgent);