Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
ayyrk #1
Member since Jul 2007 · 92 posts
Group memberships: Members, Premium
Show profile · Link to this post
Subject: onerror
The XmppCon.OnError call back - I sometimes get a class cast exception or a null pointer exception reported by the callback.

Those are exceptions from within my code. They're exceptions generated by my code in other callbacks. Do I have that right?

Thanks for any tips!

-Mark
Avatar
Jabberer #2
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
yes,

we added this because many developers add no error handlers to their own code. Which means if you have buggy code in a agsXMPP callback/event and don't handle exceptions they get passed to agsXMPP by the .NET runtime.
Before every error caused disconnect in agsXMPP which was not good. Now we catch also your errors and raise the error event.
Software Developer
AG-Software
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