IPCSocket.LastErrorCode
From Xojo Documentation
| This item was deprecated in version 2019r2. Please use IPCSocket.Error as a replacement. |
Read-Only Property (As Integer )
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))
