Hey, first of all - nice work :) Opens most of the books I have. There are very few where I get an index out of range exception coming with this call stack:
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Roler.Toolkit.File.Mobi.Compression.PalmDocCompression.Decompress(Byte[] bytes)
at Roler.Toolkit.File.Mobi.MobiReader.ReadText(Structure structure)
at Roler.Toolkit.File.Mobi.MobiReader.Read()
Attaching one of such files for reproduction (zipped). The code is the simplest one:
using (var f = File.OpenRead(file_to_file))
{
using (var mobiReader = new MobiReader(f))
{
var mobi = mobiReader.Read();
//...
Hey, first of all - nice work :) Opens most of the books I have. There are very few where I get an index out of range exception coming with this call stack:
Attaching one of such files for reproduction (zipped). The code is the simplest one:
Thanks and keep it up :)