The ‘Dispose’ activity will destroy and delete any objects created during the workflow. The example below uses an object detection activity, that detects any objects in a video, then saves the detected frames to the local drive.


The ‘Dispose’ activity is used in advanced workflows where long-lived objects are created for comparisons or other operations and must be destroyed to avoid any potential memory leaks.

Designer Properties#

Cut Properties
  1. Object To Dispose The expression containing the object to be disposed.
  2. Objects To Dispose The expression containing the collection of objects to be disposed.


Cut Properties

General Properties#

See General Properties.


See Misc.


See Designer Properties above.

Out Error#

See Out Error.


Object Detection

Sample vide for object detection.

In this sample we load a video and apply object detection on it to find the frames with objects. The frames found are saved on the disc.


To avoid overloading the CPU, the object detection activity is configured in properties to check the frames every 2 seconds, but it can be changed to any value.