Subject: PubSubManager
Is the intended use of the PubSubManager constructor different from the desktop sample? If I instantiate PubSubManager prior to login, my use of the manager's publish will result in an XMPP Null Reference error, and while I see the XML in the OnSend event, it does not truly reach the server. The XMPP connection will still function, and if I make additional publishes I will see the XML go out on the OnSend XML, but it does not reach the server. The rest of my pubsub functionality does not use the pubsub manager but rather general IQs/Sends and those work fine. The last XML that I see is:
This is identical to what I see when I don't get a null reference exception by creating the pubsubmanager post-login.
If I create the PubSubManager (and set its xmppClient) after the xmppClient is connected, then I do not experience the above. However, I have issues if messages are coming in at the time following the Constructor (OnMessage is firing), I will experience a general WinMo error (the vague, unhelpful kind). In the debugger, I see no exceptions thrown inside the library and after a lot of debugging I have found I experience no crashes if I simply disable the creation of the pubsubmanager call in my code (as a counter test, I disabled all of my pubsub functionality except the creation of the pubsubmanager and still experienced the same behavior).
<iq id="MX_12" to="pubsub.folka" type="set" xmlns="jabber:client">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<publish node="EditNode">
<item>
<entry xmlns="">
<SubjectID>1</SubjectID>
<Editing>true</Editing>
<LastUpdate>2010-06-24T14:29:29-07:00</LastUpdate>
</entry>
</item>
</publish>
</pubsub>
</iq>
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<publish node="EditNode">
<item>
<entry xmlns="">
<SubjectID>1</SubjectID>
<Editing>true</Editing>
<LastUpdate>2010-06-24T14:29:29-07:00</LastUpdate>
</entry>
</item>
</publish>
</pubsub>
</iq>
This is identical to what I see when I don't get a null reference exception by creating the pubsubmanager post-login.
If I create the PubSubManager (and set its xmppClient) after the xmppClient is connected, then I do not experience the above. However, I have issues if messages are coming in at the time following the Constructor (OnMessage is firing), I will experience a general WinMo error (the vague, unhelpful kind). In the debugger, I see no exceptions thrown inside the library and after a lot of debugging I have found I experience no crashes if I simply disable the creation of the pubsubmanager call in my code (as a counter test, I disabled all of my pubsub functionality except the creation of the pubsubmanager and still experienced the same behavior).