I need assistance with an interview question.
You have the following code-behind class in ASP.NET:
public partial class Page1 : Page 
{
    private string _value;
    public Page1() 
    {
        if (DateTime.Now.Ticks % 10 == 0)
            _value = "Test";
    }       
    ~Page1() 
    {
        if(_value.Equals("Test"))
            _value = string.Empty;      
    }
}
The w3wp.exe process stops unexpectedly every time someone requests this page.
- Why does this happen instead of the user seeing the yellow screen of death (ASP.NET's default error page)?
 
- Why does the managed heap always have an OutOfMemoryException?