Assertion failed, but all works well

29 views
Skip to first unread message

DaveInNYC

unread,
Dec 3, 2009, 10:48:37 AM12/3/09
to jabber-net
I am getting the following assertion failure, but besides that
everything seems to work fine. Any idea what the problem (if any) is?

[Debug.Assert(this.Connected);]

at SocketStanzaStream.InitializeStream() C:\projects
\JabberNet-2.1.0.710\jabber\connection\SocketStanzaStream.cs(137)
at XmppStream.InitializeStream() C:\projects
\JabberNet-2.1.0.710\jabber\connection\XmppStream.cs(1422)
at XmppStream.SendNewStreamHeader() C:\projects
\JabberNet-2.1.0.710\jabber\connection\XmppStream.cs(1439)
at XmppStream.jabber.connection.IStanzaEventListener.Connected()
C:\projects\JabberNet-2.1.0.710\jabber\connection\XmppStream.cs(1589)
at SocketStanzaStream.bedrock.net.ISocketEventListener.OnConnect
(BaseSocket sock) C:\projects\JabberNet-2.1.0.710\jabber\connection
\SocketStanzaStream.cs(396)
at AsyncSocket.ExecuteConnect(IAsyncResult ar) C:\projects
\JabberNet-2.1.0.710\bedrock\net\AsyncSocket.cs(821)
at LazyAsyncResult.Complete(IntPtr userToken)
at ContextAwareResult.CompleteCallback(Object state)
at ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
at ContextAwareResult.Complete(IntPtr userToken)
at LazyAsyncResult.ProtectedInvokeCallback(Object result, IntPtr
userToken)
at BaseOverlappedAsyncResult.CompletionPortCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
at _IOCompletionCallback.PerformIOCompletionCallback(UInt32
errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

Joe Hildebrand

unread,
Dec 3, 2009, 12:01:19 PM12/3/09
to jabbe...@googlegroups.com
It looks like you got disconnected early, or something. That assertion is that you're connected before initializing the stream. Are you *sure* everything is working well?
> --
>
> You received this message because you are subscribed to the Google Groups "jabber-net" group.
> To post to this group, send email to jabbe...@googlegroups.com.
> To unsubscribe from this group, send email to jabber-net+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/jabber-net?hl=en.
>
>

DaveInNYC

unread,
Dec 4, 2009, 2:16:48 PM12/4/09
to jabber-net
Turns out that a bug in my code was causing it to sign in twice in
rapid succession; when I fixed that the assertion went away.
> > For more options, visit this group athttp://groups.google.com/group/jabber-net?hl=en.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages