SdsEvalAndCheck - Evaluate a Tcl command checking for SDS leaks.

Function

Evaluate a Tcl command checking for SDS leaks.

Description

The arguments to this command are combined and treated as a command to be exectued. The command is executed and a check is made for SDS ids leaking or being released during this command.

If the command completes successfully but SDS ids have leaked or been released, then an error is returned.

IF the command completes with an error and SDS ids have leaked or been released, then extra information is added to the error result.

Otherwise the return of this command is as per the argument command.

Note that in some cases it is NOT an error to leak or release SDS ids - if the command has a global impact in some way. This is up to the application design.

Call

SdsEvalAndCheck <command...>

Language

Tcl

See Also

DTCL manual, Sds manual, SdsNew(n), SdsGetExtra(n), SdsPutExtra(3).

Support

Tony Farrell, AAO

Click here for the DRAMA home page and here for the AAO home page.

 For more information, contact tjf@aao.gov.au