Hello all,

        I'm trying to get to the bottom of an event-sinking problem involving 
JabberCOM and C#. This difficulty has been pointed out previously in this forum 
(http://mailman.jabber.org/pipermail/jdev/2001-November/009228.html, and 
http://mailman.jabber.org/pipermail/jdev/2002-April/011398.html) but I haven't found a 
resolution for it, and was hoping that by now someone might have.

        The problem is that an error 0x80040202 occurs when more than one delegate is 
registered for sinking events. It doesn't matter which events are involved - the first 
one always works fine, but adding any subsequent delegates triggers the error.  Here's 
my code (the JabberCOM component is instantiated as "m_jbr"):

        m_jbr.OnConnect += new JabberCOM.IJabberSessionEvents_OnConnectEventHandler( 
this.jbr_OnConnect );
        m_jbr.OnDisconnect += new 
JabberCOM.IJabberSessionEvents_OnDisconnectEventHandler( this.jbr_OnDisconnect );

if either of these two lines is removed, there is no problem, but if both are present, 
the error occurs.


        Have any of you got any ideas about this? Perhaps everyone has given up, and 
is using wrapJabberNet...


                Thanks, Malcolm Pollack
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to