View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0021947 | MMW 5 | Other | public | 2026-01-22 21:44 | 2026-07-28 10:47 |
| Reporter | peke | Assigned To | |||
| Priority | urgent | Severity | feature | Reproducibility | N/A |
| Status | closed | Resolution | reopened | ||
| Target Version | 2027 | Fixed in Version | 2027 | ||
| Summary | 0021947: Better verbose error dialog for connection errors | ||||
| Description | In some cases MM gets error codes when checking for Updates or Activate license. We should use common causes from https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2 to create common response. | ||||
| Tags | No tags attached. | ||||
| Fixed in build | 3500 | ||||
|
|
Fixed in 3500 |
|
|
Used following code to convert common error codes to text (left untranslated): function SocketErrorToText(const Msg: string): string; var ErrCode: Integer; begin Result := Msg; if Pos('Socket Error #', Msg) = 0 then Exit; ErrCode := StrToIntDef(Trim(Copy(Msg, Pos('#', Msg) + 1, MaxInt)), -1); case ErrCode of 10013: Result := 'Permission denied (access forbidden)'; 10048: Result := 'Address already in use'; 10049: Result := 'Cannot assign requested address'; 10051: Result := 'Network unreachable'; 10054: Result := 'Connection reset by peer'; 10060: Result := 'Connection timed out'; 10061: Result := 'Connection refused'; 11001: Result := 'Host not found'; else Result := 'Unknown socket error (' + IntToStr(ErrCode) + ')'; end; end; |
|
|
Verified 3514 I agree that they should be untranslated, but I wonder we can make KB article related to https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2 and add View Help button pointing to it? My guess it would help debugging. |
|
|
I don't think it is needed atm... Let's re-open in case of a need/request for this.. |