Property
IPCSocket.LastErrorCode
Warning
This item was deprecated in version 2019r2. Please use IPCSocket.Error as a replacement.
Description
The last error code.
Notes
To determine which error occurred, check the value of LastErrorCode against the following codes:<br >
Value |
Description |
---|---|
100 |
OpenDriverError<br > |
102 |
LostConnection<br > |
103 |
NameResolutionError<br > |
105 |
AddressInUseError<br > |
106 |
InvalidStateError<br > |
107 |
InvalidPortError<br > |
108 |
OutOfMemoryError |
Sample code
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))
Compatibility
All project types on all supported operating systems.