Page 1 of 1

New version?

Posted: 02 Apr 2010, 20:46
by rjrelander
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

Posted: 02 Apr 2010, 22:06
by rjrelander
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

Posted: 06 Apr 2010, 10:29
by Lapo
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.

Posted: 08 Apr 2010, 05:35
by ThomasLund
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

Posted: 22 Apr 2010, 05:00
by ThomasLund
Bugs are fixed - finding a few other things while at it.

But expect a maintenance release very soon :-)

/T