Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in dht #10

Closed
proff opened this issue Sep 2, 2011 · 3 comments
Closed

bug in dht #10

proff opened this issue Sep 2, 2011 · 3 comments
Labels

Comments

@proff
Copy link

proff commented Sep 2, 2011

mscorlib : System.IndexOutOfRangeException
Индекс находился вне границ массива.
в System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add) в System.Collections.Generic.Dictionary2.Add(TKey key, TValue value)
в MonoTorrent.Dht.Messages.MessageFactory.RegisterSend(QueryMessage message) в ....\MonoTorrent.Dht\MessageFactory.cs:строка 72
в MonoTorrent.Dht.MessageLoop.EnqueueSend(Message message, IPEndPoint endpoint) в ...\MonoTorrent.Dht\MessageLoop.cs:строка 243
в MonoTorrent.Dht.MessageLoop.EnqueueSend(Message message, Node node) в ...\MonoTorrent.Dht\MessageLoop.cs:строка 248
в MonoTorrent.Dht.Tasks.SendQueryTask.Execute() в ...\MonoTorrent.Dht\Tasks\SendMessageTask.cs:строка 55
в MonoTorrent.Dht.Tasks.GetPeersTask.SendGetPeers(Node n) в ...\MonoTorrent.Dht\Tasks\GetPeersTask.cs:строка 60
в MonoTorrent.Dht.Tasks.GetPeersTask.b__0() в ...\MonoTorrent.Dht\Tasks\GetPeersTask.cs:строка 46
в MonoTorrent.Client.MainLoop.DelegateTask.Execute() в ...\MonoTorrent\MonoTorrent.Client\MainLoop.cs:строка 132
в MonoTorrent.Client.MainLoop.Loop() в ...\MonoTorrent\MonoTorrent.Client\MainLoop.cs:строка 161

@dufoli
Copy link
Contributor

dufoli commented Sep 4, 2011

is it on mono or MS.NET?
if mono which version ?
I think the issue is in mono because a dictionary.Add must not fire this kind of exception...

@proff
Copy link
Author

proff commented Sep 4, 2011

it's .net framework 4.0
only one possible reason of this exception: concurrent use this dictionary, because it's not thread safe

@samhocevar samhocevar added the bug label Nov 28, 2016
@alanmcgovern
Copy link
Owner

Maybe it's ok now?

@Vuyiswamb Vuyiswamb mentioned this issue May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants