TIdIRC is a multi-threaded component.
So, I guess, you have to use synchronize to access gui elements.
TThread.Queue(
procedure
begin
ListBox1.Items.Add("Ha entrado el usuario " + ANickname);
end);
IdSync
unit is mostly deprecated in the latest Delphi and FPC versions in favor of TThread.Synchronize()
and TThread.(Force)Queue()
, but it is still maintained for older compiler versions