Deprecated. Returns the last error on the specified connection.

C Language

VTCERR2 vtc_get_last_error ( PVCI2 pvci );

C# Language

LoadRunner.VtsErrorCode vts_multi.get_last_error ( long pvci );
Global Functions


pvciThe server connection handle.

vtc_get_last_error returns the last error on the specified connection.

Return Values

Returns zero on success or one of the Error Codes.


All string input arguments can be passed using standard parameterization.

C Language Example

int rc;
PVCI2 connection;
rc = vtc_get_last_error( connection );
lr_log_message("Disconnect result rc=%d\n", rc);   

C# Language Example

.Net Multiple Connection Example