Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
preky #1
Member since Jan 2006 · 17 posts
Group memberships: Members
Show profile · Link to this post
Subject: StackOverflow exc. thrown reading Error of Iq..& solution
StackOverflow exception thrown while reading Error property of Iq...and solution.
  1.         public Error Error
  2.         {
  3.             get
  4.             {
  5.                 Element err = SelectSingleElement("error");
  6.                 if (err != null && err.GetType() == typeof(Error))
  7.                     return (Error)err;
  8.                 else
  9.                     return null;
  10.             }
  11.             set { this.AddChild(value); }
  12.         }
is the code that should be inside XmppPacket.cs
line    
  1.                 return (Error);
is not correct!
it should be:
  1.                     return (Error)err;
Preky
This post was edited 4 times, last on 2006-02-18, 20:02 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello perky,

thank you. We will rewrite this function and upload the new code to SVN this evening.

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