After 4 hours or so I'm getting this on the OnError event:
Code: Select all
THREAD thread_uniconnection1: Cannot connect to server on host 'XXX':
Only one usage of each socket address (protocol/network address/port) is normally permitted.
Socket Error Code: 10048($2740)
Code: Select all
thread_uniconnection1:= TUniConnection.Create(nil);
thread_uniconnection1.Database:= XXX;
thread_uniconnection1.LoginPrompt:= False;
thread_uniconnection1.ProviderName:= 'MySQL';
thread_uniconnection1.Server:= XXX;
thread_uniconnection1.Username:= XXX;
thread_uniconnection1.Password:= XXX;
//events
thread_uniconnection1.OnError:= UniConnectionErrorHistory;
thread_uniconnection1.OnConnectionLost:= UniConnectionConnectionLostHistory;
thread_uniconnection1.AfterDisconnect:= UniConnectionHistoryAfterDisconnect;