PlistCS
PlistCS copied to clipboard
An exception of type 'System.OutOfMemoryException' occurred in mscorlib.dll but was not handled in user code
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.
