Open GoogleCodeExporter opened 8 years ago
Answering my own question here:
Last night I managed to consistently login to the remote jabber server, but it
only worked in Debug mode no matter what kind of excercises I tried...
So today I discovered the following code in Jabber:
public static string ToString(object value)
{
Type t = value.GetType();
if (!t.IsEnum)
throw new ArgumentException("Type must be enum");
if ((int)value == -1)
return null;
Dictionary<object, string> map = GetStringHash(t);
string val = null;
Debug.Assert(map.TryGetValue(value, out val));
return val;
}
This obviously a bug in a very commonly-used function, which makes me wonder
how the whole thing works even with 32-Bit...
As you can imagine, statement like that has a problem in Release mode since it
returns the parameter through 'out val'...
So, removing the Debug.Assert and leaving the TryGetValue fixes the login
problem in a heart beat...Hope it is going to make it in whatever the next
version is.
Original comment by leonthea...@gmail.com
on 21 Apr 2011 at 9:01
Unable to read the data from transaport connection. and connection forcibly
closed. while login
Original comment by kalpen1...@gmail.com
on 27 Mar 2012 at 6:04
Original issue reported on code.google.com by
leonthea...@gmail.com
on 20 Apr 2011 at 7:36