开发者

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 examp开发者_如何转开发le 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?


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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜