Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
petazetas #1
Member since Jul 2006 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: XML Parser Exception : Collection was modified; enumeration operation may not execute.
Hi , I'm getting this exception.
The exception occurs when trying to parse this message:

<presence xmlns="jabber:client" from="4058a2d2-1eba-4f65-b00e-83000024882f@msn.jabber.belnet.be/YYYY@msn.com" to="XXXX@jabber.belnet.be/LiveExpertsBOT" type="unavailable" />

I'm no sure what additional information could be usefull to debug this bug.

Type : System.InvalidOperationException
Message: Collection was modified; enumeration operation may not execute.
Source: mscorlib
TargetSite: Boolean MoveNext()
StackTrace:
   at System.Collections.Hashtable.HashtableEnumerator.MoveNext()
   at agsXMPP.PresenceGrabber.m_connection_OnPresence(Object sender, Presence pres) in \\Alex\eigene dateien\Visual Studio 2005\Projects\agsxmpp_Net2.0\agsxmpp\PresenceGrabber.cs:line 98
   at agsXMPP.XmppClientConnection.PresenceHandler.Invoke(Object sender, Presence pres)
   at agsXMPP.XmppClientConnection.StreamParserOnStreamElement(Object sender, Node e) in \\Alex\eigene dateien\Visual Studio 2005\Projects\agsxmpp_Net2.0\agsxmpp\XmppClientConnection.cs:line 1116
   at agsXMPP.StreamHandler.Invoke(Object sender, Node e)
   at agsXMPP.StreamParser.EndTag(Byte[] buf, Int32 offset, ContentToken ct, TOK tok) in \\Alex\eigene dateien\Visual Studio 2005\Projects\agsxmpp_Net2.0\agsxmpp\StreamParser.cs:line 329
   at agsXMPP.StreamParser.Push(Byte[] buf, Int32 offset, Int32 length) in \\Alex\eigene dateien\Visual Studio 2005\Projects\agsxmpp_Net2.0\agsxmpp\StreamParser.cs:line 126
Avatar
Alex #2
Member since Feb 2003 · 4447 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

for me it looks like the exception occurs in the Presence Grabber. Are you using the presence grabber correctly?
Can you write a test case which causes this exception or post your code?

Alex
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:
Forum: agsXMPP RSS