Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

ArgumentOutOfRangeException #2

Closed
ras254 opened this issue Nov 23, 2016 · 1 comment
Closed

ArgumentOutOfRangeException #2

ras254 opened this issue Nov 23, 2016 · 1 comment
Assignees
Labels

Comments

@ras254
Copy link

ras254 commented Nov 23, 2016

I got an ArgumentOutOfRangeException when run this code

        static void Main(string[] args)
        {
            var file = new CompoundFile(@"cf_test6.bin");
            var cfStream = file.RootStorage.TryGetStorage("Layer2").TryGetStream("ids");

            // ArgumentOutOfRangeException
            var r = new StreamReader(cfStream.AsIOStream());
            // If replace by this code line, no exception
            //var r = new StreamReader(new MemoryStream(cfStream.GetData()));
            int count = 0;
            while (r.ReadLine() != null)
            {
                count++;
            }
            Console.WriteLine(count);

            Console.ReadLine();
        }

cf_test6.bin

@salaros
Copy link
Collaborator

salaros commented Nov 23, 2016

Thanks for filling the bug and attaching the sample file! I will try to fix it ASAP

@salaros salaros added the bug label Nov 23, 2016
@salaros salaros self-assigned this Nov 23, 2016
@salaros salaros closed this as completed in 187b208 Dec 2, 2016
salaros added a commit that referenced this issue Dec 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants