happy9335 / jabber-net

Automatically exported from code.google.com/p/jabber-net
Other
0 stars 0 forks source link

Debug mode works, Release mode disconnects. #61

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Connect in debug mode
2. Connect in release mode

What is the expected output? What do you see instead?
release mode immediately disconnects after a connection.

What version of the product are you using? On what operating system?
2.1.0.710, Windows Vista

Please provide any additional information below.
I am only using the 2005-jabber-net.csproj and netlib.dns.csproj projects. 
  I notice there are no #if DEBUG in the code, but perhaps there is other
project settings causing the problem.  I was unable to determine the cause.

When I compile my project in release mode, then copy the debug modes of the
two dll's to the same folder, the bot connects fine (that is my temporary
hack for now)

Original issue reported on code.google.com by duffy.a...@gmail.com on 12 Feb 2009 at 4:09

GoogleCodeExporter commented 9 years ago
Also forgot to mention this was an upgrade from 2.0.0.553 and it worked in both 
debug
and release mode.

Original comment by duffy.a...@gmail.com on 12 Feb 2009 at 4:34

GoogleCodeExporter commented 9 years ago
I think there's an assert with side-effects.  I'm pretty sure it's already been 
fixed in the head of subversion.  Can 
you post a protocol trace, or narrow down where the disconnection is happening?

Original comment by hil...@gmail.com on 16 Feb 2009 at 6:37

GoogleCodeExporter commented 9 years ago
for anyone having this problem look at the line of code:

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

in the class EnumParser.cs

simple change to:

map.TryGetValue(value, out val); 

Original comment by BCaseyHa...@gmail.com on 16 Mar 2009 at 6:33

GoogleCodeExporter commented 9 years ago
I do not have EnumParser.cs

Original comment by duffy.a...@gmail.com on 19 Mar 2009 at 4:09

GoogleCodeExporter commented 9 years ago
Actually, this was fixed in head:

http://code.google.com/p/jabber-net/source/diff?
spec=svn760&r=727&format=side&path=/trunk/jabber/protocol/EnumParser.cs&old_path
=/trunk/jabber/prot
ocol/EnumParser.cs&old=724

Original comment by hil...@gmail.com on 20 Mar 2009 at 5:56