Unity Windows Phone Disconnect Function Error

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
Eser Telekom
Posts: 25
Joined: 16 Oct 2014, 07:28
Location: Istanbul
Contact:

Unity Windows Phone Disconnect Function Error

Post by Eser Telekom »

Unity v : 4.6.0f3
Smarfox v : 1.5.5.0
Windows Phone build target : 8.0


When i try to call smartfox.Disconnect() , I got this error; (No problem in Android , IOS only occur this error Windows Phone)

[SFS - ERROR] TCPSocketLayer: General error reading data from socket: One or more errors occurred. at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Sfs2X.Net.NetworkStream.Read(Byte[] Buffer, Int32 Offset, Int32 Len)
at Sfs2X.Core.Sockets.TCPSocketLayer.Read()
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Unity Windows Phone Disconnect Function Error

Post by Bax »

We are not able to reproduce this issue. Can you please retest with the latest version of the API we released a few minutes ago? (see your other post: http://forums.smartfoxserver.com/viewto ... 20&t=17676)
Paolo Bax
The SmartFoxServer Team
Eser Telekom
Posts: 25
Joined: 16 Oct 2014, 07:28
Location: Istanbul
Contact:

Re: Unity Windows Phone Disconnect Function Error

Post by Eser Telekom »

Same error occur on new 1.5.6.0 smartfox dlls .
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Unity Windows Phone Disconnect Function Error

Post by Bax »

We tested the disconnection using a simple example: click a button to connect and login, click again to disconnect.
Visual Studio doesn't show errors and the disconnection occurs as expected.
Maybe we can send the example and you can try it yourself and spot any differences with respect to your use case?
If yes, contact us by email.
Paolo Bax
The SmartFoxServer Team
Post Reply