void InitDebugMode () { #if DEBUG AppDomain.CurrentDomain.DomainUnload += new EventHandler (OnDomainUnload); #endif }