HandleRoomAdded (buged bool.parse)

Post here all your questions related with beta Silverlight API

Moderators: Lapo, Bax

azchohfi
Posts: 3
Joined: 03 Nov 2010, 13:34
Contact:

HandleRoomAdded (buged bool.parse)

Postby azchohfi » 04 Nov 2010, 13:39

I found an other error on the HandleRoomAdded function.
the boolean parsing was throwing exception. To fix it change:

Code: Select all

isTemp = bool.Parse(xml.Element("body").Element("rm").Attribute("temp").Value);
To:

Code: Select all

isTemp = int.Parse(xml.Element("body").Element("rm").Attribute("temp").Value) == 1;
To realy fix it, change all this vars: isTemp, isGame, isPriv and isLimbo.

Hope that helps. :D

EDIT: I think this bug also happen every other bool.parse. All that should be changed.

EDIT2: Not all them! On LoadConfigCompleted, the loading of the vars "debug" and "smartConnect" are correct, don't change that two.

Return to “Silverlight API”

Who is online

Users browsing this forum: No registered users and 1 guest