libgit2/libgit2sharp — Issue #115: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Author: psantosl
Created: 2012-02-25 19:23:11+00:00
State: open

Hi,

Got this:

"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

Running the following code:

static void Main(string[] args)
{
Repository rep = new Repository(@"C:\Users\pablo\linux-2.6");

Console.WriteLine("merges {0}", rep.Commits.Count(commit => commit.ParentsCount > 1));
}

It fails looping through the commits.

The same happens if you do a "foreach"