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
|
_______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list