New version?

Post here all your questions related with beta Silverlight API

Moderators: Lapo, Bax

rjrelander
Posts: 4
Joined: 02 Apr 2010, 20:42

New version?

Postby rjrelander » 02 Apr 2010, 20:46

Just wondering when/if the Silverlight API will be updated. It looks like the API was written to work with SmartFoxServer 1.5.4 and it doesn't seem to work with the SmartFoxServer 1.6.6 protocol.

The xml handler is throwing a null reference exception on an extension response. The exception is swallowed but it is preventing the extension response event from being fired.

The following is debug output from a custom login response:

[ RECEIVED ]: <msg t='xt'><body action='xtRes' r='-1'><![CDATA[<dataObj><var n='id' t='s'>4</var><var n='name' t='s'>username</var><var n='_cmd' t='s'>logOK</var></dataObj>]]></body></msg>, (len: 176)

XML Handler null reference exception System.NullReferenceException: Object reference not set to an instance of an object.
at SmartFoxClientAPI.Handlers.ExtHandler.HandleMessage(Object msgObj, String type)
at SmartFoxClientAPI.SmartFoxClient.XmlReceived(String msg)

- Randi
Last edited by rjrelander on 02 Apr 2010, 22:10, edited 1 time in total.
rjrelander
Posts: 4
Joined: 02 Apr 2010, 20:42

Postby rjrelander » 02 Apr 2010, 22:06

Did a little more digging and it looks like it is just a bug in the extension response handler code. It is looking for the "body" element at the root level instead of looking inside the "msg" element. The "msg" element is actually fetched but never used.

- Randi
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 06 Apr 2010, 10:29

Hi Randi,
thanks for reporting and for the comments.
We'll take a look at the bug as soon as possible. As regards the compatibility with SmartFoxServer the Silverlight API are based on the latest 1.6.6 features.
Lapo
--
gotoAndPlay()
...addicted to flash games
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 08 Apr 2010, 05:35

Hi Randi,

Will be looking into this asap. Will keep you updated on a maintenance release.

Have you run into any other issues?

Anyone else?

Also in its place a sorry for not having responded here before - I just discovered these forums myself (I have only been checking the C#/Unity API ones)

Best
Thomas
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 22 Apr 2010, 05:00

Bugs are fixed - finding a few other things while at it.

But expect a maintenance release very soon :-)

/T

Return to “Silverlight API”

Who is online

Users browsing this forum: No registered users and 3 guests