View Issue Details

IDProjectCategoryView StatusLast Update
0021947MMW 5Otherpublic2026-07-28 10:47
Reporterpeke Assigned To 
PriorityurgentSeverityfeatureReproducibilityN/A
Status closedResolutionreopened 
Target Version2027Fixed in Version2027 
Summary0021947: Better verbose error dialog for connection errors
DescriptionIn 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.
TagsNo tags attached.
Fixed in build3500

Activities

Ludek

2026-01-23 18:06

developer   ~0080395

Last edited: 2026-01-23 18:08

Fixed in 3500

Ludek

2026-01-23 19:31

developer   ~0080396

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;

peke

2026-07-27 10:21

developer   ~0081700

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.

Ludek

2026-07-28 10:47

developer   ~0081705

I don't think it is needed atm...

Let's re-open in case of a need/request for this..