IPCSocket.LastErrorCode

From Xojo Documentation

Read-Only Property (As Integer )
IntegerValue = aIPCSocket.LastErrorCode

Supported for all project types and targets.

The last error code.

Notes

To determine which error occurred, check the value of LastErrorCode against the following codes:

Value Description
100 OpenDriverError
102 LostConnection
103 NameResolutionError
105 AddressInUseError
106 InvalidStateError
107 InvalidPortError
108 OutOfMemoryError

Example

The following example is in the Error event handler of an IPCSocket. It adds the last error code to a Listbox.

ListBox1.AddRow("Error: " + Str(Me.LastErrorCode))