Subject: NullReferenceException with CompactFramework
Back again. For my application i don't know for sure if there is a connection available. Therefore messages are stored in a local queue. Everytime a message is created and should be send, my application tries to connect to a server. If loggin in is possible the local stored messages are send to the server.
This is working on a desktop pc. When i use the Open method of XmppClientConnection and a connection can be created there is no problem when sending messages to the server. When no connection is available and i do the Open method for a second time i get a NullReferenceException.
I now try to change the code so it will create a new XMPPClientConnection every time. But the strange thing is that it just work on a desktop pc.
This is working on a desktop pc. When i use the Open method of XmppClientConnection and a connection can be created there is no problem when sending messages to the server. When no connection is available and i do the Open method for a second time i get a NullReferenceException.
I now try to change the code so it will create a new XMPPClientConnection every time. But the strange thing is that it just work on a desktop pc.