Handles are represented by a new class HHandle. It is the base class of the specialized tool classes (HShapeModel, HBarCode etc.). HTuple supports HHandle as an additional element type (both in mixed and pure tuples). HTuple elements representing handles are accessed as HHandle (*.H) instead of Hlong (*.L). This is a common adaptation that will be needed within existing sources when they are to be ported to the new handle mechanism.
HTuple is now a disposable class in HALCON/.NET. When a HTuple or HHandle instance is destroyed, the reference counter of the affected handle(s) is decreased. When the reference counter reaches zero, the physical tool (e.g., a shape model) is destroyed automatically.