SFS .NET 1.1 installed.
The problem occurs in following situation:
- User1 is connected and joined to room "Heli Attack 3".
- User2 is connected and joined to room "Heli Attack 3".
- User2 trying to create room "Spore Attack". Room is created but OnRoomAdded event is not fired.
Debug info:
Code: Select all
SFC debug message: "[Sending]: <msg t='sys'><body action='createRoom' r='204'><room tmp='1' gam='1' spec='0' exit='1'><name><![CDATA[Spore Attack]]></name><pwd><![CDATA[]]></pwd><max>20</max><vars></vars></room></body></msg>
"
SFC debug message: "[ RECEIVED ]: <msg t='sys'><body action='joinOK' r='5'><pid id='1'/><vars /><uLs r='5'><u i='1' m='0' s='0' p='1'><n><![CDATA[User2]]></n><vars></vars></u></uLs></body></msg>, (len: 160)"
SFC debug message: "XML Handler null reference exception System.NullReferenceException: Object reference not set to an instance of an object.
at SmartFoxClientAPI.Handlers.SysHandler.HandleJoinOk(XmlNode xml)
at SmartFoxClientAPI.Handlers.SysHandler.HandleMessage(Object msgObj, String type)
at SmartFoxClientAPI.SmartFoxClient.XmlReceived(String msg)"
In other situations event fires properly.
BTW, one more strange in described situation: in the code I call only
Code: Select all
sfc.CreateRoom(paramsHash, roomId);