EmSACANLibrary.GetLastError
Prototype
string GetLastError(int maxMessageLength = 256);
Description
Last process-wide error (e.g. enumerate or connect failures).
Parameters
| Parameter | Direction | Type | Description |
|---|---|---|---|
maxMessageLength | in | — | Max wchar length. |
Return value
Error text or empty.
Example
try { device.OpenChannel(0); }
catch (EmSACANException ex)
{
Console.WriteLine($"{ex.Message} — {device.GetLastError()}");
}