Skip to content

Instantly share code, notes, and snippets.

@amanda-mitchell
Created June 16, 2011 04:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amanda-mitchell/1028651 to your computer and use it in GitHub Desktop.
Save amanda-mitchell/1028651 to your computer and use it in GitHub Desktop.
Demonstrates a bug when trying to run the lastest Mono when built for x86_64 on OS X
using System;
class Program
{
static void Main()
{
object obj = new object();
for (int i = 0; i < 2; i++)
{
AppDomain domain = AppDomain.CreateDomain ("my domain");
AppDomain.Unload(domain);
}
GC.Collect();
Console.WriteLine(obj);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment