Skip to main content

callcontext::FromHandle (obsolete)

Valid for: CANoe DE

Method Syntax

callContext * callContext::FromHandle(long handle);

Description

Retrieves a call context from a permanent handle. You need a permanent handle if you want to keep a call alive for a longer time, e.g., if you wish to store several call contexts in an (associative) array. You also need a permanent handle if you want to pass the call context e.g., to a CAPL DLL. You need to call callcontext::ReleaseHandle if you do not need the call context anymore so that its resources are freed.

Parameters

  • handle: A permanent handle for a call context.

Return Values

The call context.

Example

Programming with the Communication Concept (C#, Python and CAPL) • callcontext::CreatePermanentHandle • callcontext::ReleaseHandle