NullPointerException during disconnect

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

Moderators: Lapo, Bax

Jochanan
Posts: 79
Joined: 11 May 2018, 09:12

NullPointerException during disconnect

Postby Jochanan » 08 May 2020, 13:40

Hi, ocationally, we are getting null pointer exception as a result of calling Sfs.Disconnect();

Code: Select all

Sfs2X.Bitswarm.BBox.BBClientV2.HandleConnectionLost (System.Boolean fireEvent, System.String reason) (at <00000000000000000000000000000000>:0)
Sfs2X.Bitswarm.BitSwarmClient.Disconnect (System.String reason) (at <00000000000000000000000000000000>:0)
Sfs2X.SmartFox.HandleClientDisconnection (System.String reason, System.Boolean triggerEvent) (at <00000000000000000000000000000000>:0)


Do you have any idea, what might be the cause and how to prevent it?
User avatar
Bax
Site Admin
Posts: 4522
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: NullPointerException during disconnect

Postby Bax » 08 May 2020, 14:41

Very hard to say what is going on. Are you using the release or debug API DLL? If the release one, try with the debug one, in case we get some other, more meaningful information. Thanks.
Paolo Bax
The SmartFoxServer Team
Jochanan
Posts: 79
Joined: 11 May 2018, 09:12

Re: NullPointerException during disconnect

Postby Jochanan » 10 May 2020, 19:42

unfortunatelly, I cannot use a debug one on production enviroment - where someone got this exception
User avatar
Bax
Site Admin
Posts: 4522
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: NullPointerException during disconnect

Postby Bax » 11 May 2020, 07:35

Is there a specific reason why you can't do that?
From our point of view there's no difference (for example debug API aren't slower), except you should get more readable error messages.
Paolo Bax
The SmartFoxServer Team

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 3 guests