Utility Functions and C Language Reference > Virtual Table Server Functions (VTS) for C, C#, and Java > Virtual Table Server (VTS) Functions for Multiple Connections > Alphabetical Listing > vtc_get_last_error

vtc_get_last_error

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 ( int pvci );

Java Language

int Vtc.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

Java Language Example

Java Multi-Connection Example