Subject: StackOverflow exc. thrown reading Error of Iq..& solution
StackOverflow exception thrown while reading Error property of Iq...and solution.
is the code that should be inside XmppPacket.cs
line
is not correct!
it should be:
- public Error Error
- {
- get
- {
- Element err = SelectSingleElement("error");
- if (err != null && err.GetType() == typeof(Error))
- return (Error)err;
- else
- return null;
- }
- set { this.AddChild(value); }
- }
line
- return (Error);
it should be:
- return (Error)err;
Preky
This post was edited 4 times, last on 2006-02-18, 20:02 by Alex.