CPJoshi
CPJoshi

Reputation: 487

Jabber-Net release build fails to connect to XMPP Server

I downloaded jabber-net source from http://code.google.com/p/jabber-net/. Open the .sln file (2005-jabber-net.sln) in VS 2005/08, set "2005-Example" as active project, build it in Debug mode, connect to a XMPP Server, after connect() method is called, the callback jc_OnAuthenticate() gets called which means the application is connected to XMPP Server.


Then i build the .sln in Release Mode, ran the same example again, this time after connect() call nothing happens, the callback jc_OnAuthenticate() doesn't get called ever. Is it a known issue with jabber-net?

Upvotes: 1

Views: 666

Answers (1)

Daniel Mošmondor
Daniel Mošmondor

Reputation: 19966

There is some code in Debug.Assert statements such as:

\jabber\protocol\EnumParser.cs(184):

Debug.Assert(map.TryGetValue(value, out val));

I rewrote to:

bool b = map.TryGetValue(value, out val);
Debug.Assert(b);

Works (at least for me).

Upvotes: 3

Related Questions