TReKiE / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Corrupted .mcl file causes exception to be thrown #56

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Unknown.

What is the expected output? What do you see instead?
Contact list should be loaded without any problem, but an exception is 
thrown when there's something wrong with the .mcl files.

What version of the product are you using? On what operating system?
MSNP 2.5.1 on Windows 2000 Server.

Please provide any additional information below.
My program has been running for a while. The exception popped up after a
restart. 
Seems like there's inconsistency with the local and remote contact list.
I couldn't catch this exception, except in the App level. This problem can
be solved by deleting the .mcl files.

I think this error should be handled differently. Instead of throwing an
exception that can only be handled at App level(cause OS popup), it should
be handled internally or use a callback to the program?

Below is the exception and the call stack:
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue
value, Boolean add)
   at MSNPSharp.IO.XMLContactList.AddMemberhip(ServiceFilterType
servicetype, String account, ClientType type, MemberRole memberrole,
BaseMember member)
   at MSNPSharp.IO.XMLContactList.op_Addition(XMLContactList xmlcl,
FindMembershipResultType findMembership)
   at MSNPSharp.ContactService.<>c__DisplayClassa.<msRequest>b__6(Object
sender, FindMembershipCompletedEventArgs e)
   at
MSNPSharp.MSNWS.MSNABSharingService.SharingServiceBinding.OnFindMembershipOperat
ionCompleted(Object
arg)

Original issue reported on code.google.com by kuan...@gmail.com on 6 Jan 2009 at 4:47

GoogleCodeExporter commented 9 years ago
This issue has been already fixed:
http://code.google.com/p/msnp-sharp/issues/detail?id=49

Please upgrade to:
http://msnp-sharp.googlecode.com/svn/branches/MSNPSHARP_25_STABLE

or wait our next release 2.5.2

Original comment by hepha...@gmail.com on 6 Jan 2009 at 9:40

GoogleCodeExporter commented 9 years ago
Now, 2.5.2 is ready for download.

Original comment by hepha...@gmail.com on 7 Jan 2009 at 10:26

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 19 Jan 2009 at 9:18