TReKiE / msnp-sharp

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

Running a application with mono with MSNPSharp error #180

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Builded MSNPSharp in Mono on Ubuntu 9.10
2.Running my console application:
Output:
[21:18:48.148] [Core] » Welcome to BuddyLator Social Bot Server.
[21:18:48.207] [Core] » BuddyLator is a MSN Bot based on MSNPSharp.
[21:18:48.207] [Core] » Using MSNPSharp Version: 3.0.1 Builded with Mono.
[21:18:48.207] [Core] » © BuddyLator.com - This is an Service Only version. 
Created for Social Networking.

[21:18:48.207] [Core] » multi-Account is Enabled. And also Email is 
Enabled.
[21:18:48.207] [Core] » Version: 0.5

[21:18:48.207] [Core] » Booting BuddyLator... With MSN Protocol 18
[21:18:48.207] [Core] » Loading Settings form MySQL Database: consolebot
[21:18:50.914] [Core] » Bots Loaded. Amount: 2
[21:18:50.968] [mailManager] » Loading email settings...
[21:18:53.228] [mailManager] » Loading Done!
[21:18:53.273] [mailManager] » Loading email settings...
[21:18:55.535] [mailManager] » Loading Done!
[21:19:32.381] [Core] » The Bot: *******@*******.*** Logged in!
[21:19:32.958] [Client] » *******@*******.*** logged in!
[21:19:35.51] [Core] » The Bot: *******@*******.*** Logged in!
[21:19:36.806] [Client] » *******@*******.*** logged in!
[21:19:53.358] [Client] » *******@*******.*** logged in!
[21:19:57.864] [Client] » A Other person than me just connected!
[21:19:58.851] [Chat [0]] » *******@*******.*** Started a new Conversation!
[21:19:59.80] [Client] » Display Image is Changed.
[21:20:02.397] [Client] » Display Image is Changed.
[21:20:02.925] [Chat [2]] » *******@*******.*** Started a new Conversation!

Unhandled Exception: System.InvalidOperationException: out of sync
  at 
System.Collections.Generic.Dictionary`2+Enumerator[System.Int32,MSNPSharp.C
ontact].VerifyState () [0x00000] 
  at 
System.Collections.Generic.Dictionary`2+Enumerator[System.Int32,MSNPSharp.C
ontact].MoveNext () [0x00000] 
  at MSNPSharp.ContactList+ListEnumerator.MoveNext () [0x00000] 
  at BuddyLator.Managers.contactManager.UpdateContactList () [0x00000] 
  at BuddyLator.Core.CoreMonitor () [0x00000] 

3.What is the expected output? What do you see instead?
See Above. I Expected that MSNPSharp handle it. 
I did not even opened a chat window or something.

What version of the product are you using? (MSNPSharp, OS, Mono etc.)
Using MSNPSharp Version: 3.0.1 Builded with Mono on Ubuntu 9.10

Is your code check out from SVN or download from our download site?
Stable SVN Release. Checkedout 1 hour ago.

Please provide any additional information below:
Is this an problem in my bot server or do i need to handle it in the 
msnpsharp source? so yes, Where?

Original issue reported on code.google.com by WendellM...@gmail.com on 29 Jan 2010 at 8:32

GoogleCodeExporter commented 9 years ago
I tried to rebuild it. and run it again and now i dind´t recieve that error. 
But when i run in mono. my bot respond mostly within a second on windows. And 
in mono 
is it like 3/4 seconds.

Do you maybe know why that is? it just recieve messages very fast..

Original comment by WendellM...@gmail.com on 29 Jan 2010 at 9:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
You need to do sync while visit contactlist, it not thread safe.

Original comment by freezing...@gmail.com on 31 Jan 2010 at 6:30