[JDEV] Problems with delegates in C# using JabberCOM
Neil Ferguson
neilferguson at totalise.co.uk
Fri Nov 23 06:58:15 CST 2001
Hi all.
I'm having a problem registering more than one delegate for events in
JabberCOM using C#. I can register the first delegate OK, but I always get the
following exception when I register the second one (no matter what event it is
referring to):
Unhandled Exception: System.Runtime.InteropServices.COMException
(0x80040202): Exception from HRESULT: 0x80040202.
An example of the code is as follows:
JabberSession objJabberSession = new JabberSession;
objJabberSession.OnConnect +=
JabberSessionEvents_OnConnectEventHandler(JabberSession_OnConnect);
objJabberSession.OnAuthError +=
JabberSessionEvents_OnAuthErrorEventHandler(JabberSession_OnConnect); < *Error
occurs on this line*.
It seems somebody else has encountered this problem before (see:
http://aspn.activestate.com/ASPN/Mail/Message/DevelopMentor-dotNET/772459) but
I haven't been able to find a resolution.
Anybody got any ideas?
Thanks,
Neil.
More information about the JDev
mailing list