Search Issue Tracker

Fixed in 5.4.0

Votes

0

Found in

5.4.0b1

Issue ID

756670

Regression

No

[UNET] Adding the exceptional config to HostTopology causes a program's crash when manager adds a host

Networking

-

1. Open attached soultion
2. Run ChatServer.exe
==>
Program crashes

What is going on inside:
If HostTopology has a special connection config added then a code in NetLibManager invokes
public HostTopologyInternal(HostTopology topology) { ... } and this invokes next function with "i=0"

public ConnectionConfig GetSpecialConnectionConfig(int i)
{
if (i > m_SpecialConnections.Count || i == 0)
throw new ArgumentException("special configuration index is out of valid range");
return m_SpecialConnections[i - 1];
}

This causes an exception to be thrown.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.