private void sendUpdateGhosts() { for (int i = 0; i < players.Count; i++) { try { ClientInterface c = (ClientInterface)Activator.GetObject(typeof(ClientInterface), players[i].getUrl()); c.updateGhosts(ghostsRemote); } catch (Exception e) { Console.WriteLine("ERRO4" + i); failureDetector.getKnownProcessById(i.ToString()).addFail(new Fail()); players[i].setAlive(false); } } }