Archived

This forum has been archived. Please start a new discussion on GitHub.

Remove() or RemoveAt() ???

hi,

in the C# implementations of ObjectAdapterI.addRouter (ObjectAdapterI.cs line 561):
		    for(int i = 0; i < _routerEndpoints.Count-1;)
		    {
			System.Object o1 = _routerEndpoints[i];
			System.Object o2 = _routerEndpoints[i + 1];
			if(o1.Equals(o2))
			{
			    _routerEndpoints.Remove(i);
			}
			else
			{
				++i;
			}
		    }

there is the call to Remove( i ).
I do suspect you wanted to call RemoveAt( int index ) instead.

in my environment (.NET 2.0) this causes the application to hang.

take care

tom

PS: we are running ICE-3.0.0

Comments

  • Thanks muchly for the bug report! We'll fix this.

    Cheers,

    Michi.