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

Already on GitHub? Sign in to your account

bug in dht #10

Open
proff opened this Issue Sep 2, 2011 · 2 comments

Comments

Projects
None yet
3 participants

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

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 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment