Share this page

# vtc_get_last_error

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

## Arguments

Name | Comments
--- | ---
pvci | The 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.

## Parameterization

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

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: