[Mono-dev] Bug in MonoTorrent

Andreas Nahr ClassDevelopment at A-SoftTech.com
Wed Sep 20 18:16:10 EDT 2006


Hi,

I tried the MonoTorrent library and found a bug preventing if from working with large torrents or files.
The torrent contained a file with > 3GB size (Linux DVD image):

System.IO.IOException was unhandled
  Message="An attempt was made to move the file pointer before the beginning of the file.\r\n"
  Source="mscorlib"
  StackTrace:
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.SeekCore(Int64 offset, SeekOrigin origin)
       at System.IO.FileStream.Seek(Int64 offset, SeekOrigin origin)
       at MonoTorrent.Client.FileManager.Read(Byte[] buffer, Int32 bufferOffset, Int64 offset, Int32 count)
       at MonoTorrent.Client.FileManager.GetHash(Int32 pieceIndex)
       at MonoTorrent.Client.TorrentManager.HashCheck(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)


Also some functions like e.g. torrent.DownloadSpeed () seem to be pretty complicated to get right in terms of multithreading use.

Happy Hacking
Andreas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060921/ac3ceda0/attachment.html 


More information about the Mono-devel-list mailing list