Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
mnsd #1
Member since Oct 2016 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: iOS System.NullReferenceException: Object reference not set to an instance of an object
Hi Alex,

Periodically when resuming an iOS app and the library (version 2.0.0.17) tries to reconnect, this error is getting thrown:

System.NullReferenceException: Object reference not set to an instance of an object

Matrix.XmppStream.Compress(byte[] bIn)
Matrix.XmppStream.SendData(string xml)
Matrix.XmppStream.Send(string xml)
Matrix.XmppStream.SendStreamFooter()
Matrix.XmppStream.Close()
Matrix.XmppStream.socket_OnError(object sender, ExceptionEventArgs e)
Matrix.Net.BaseSocket.FireOnError(Exception ex)
Matrix.Net.ClientSocket.EndSend(IAsyncResult ar)
System.Net.Sockets.SocketAsyncResult.<Complete>c__AnonStorey0.<>m__0(object _)
System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
System.Threading.ThreadPoolWorkQueue.Dispatch()
ObjCRuntime.Runtime.ThreadPoolDispatcher(Func<_> callback)
System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

It does not always occur, only every now and then.
This post was edited on 2016-10-18, 11:32 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
please take a look here:
http://forum.ag-software.net/thread/1873-Xamarin-iOS-disco…

maybe the same issue with the iOS 10 update and Xamarin.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: