Skip to content

An exception of type 'System.OutOfMemoryException' occurred in mscorlib.dll but was not handled in user code #12

Description

@iamchandreshk

I am getting "An exception of type 'System.OutOfMemoryException' occurred in mscorlib.dll but was not handled in user code", in the

private static void parseOffsetTable(List<byte> offsetTableBytes)
        {
            for (int i = 0; i < offsetTableBytes.Count; i += offsetByteSize)
            {
                byte[] buffer = offsetTableBytes.GetRange(i, offsetByteSize).ToArray();
                Array.Reverse(buffer);
                offsetTable.Add(BitConverter.ToInt32(RegulateNullBytes(buffer, 4), 0)); //getting error in this line.
            }
        }

Please, check the attached screenshot for the same.
screenshot 30

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions