This commit is contained in:
jfrijters 2004-05-25 07:14:39 +00:00
Родитель 84362484ff
Коммит a4b5f86614
2 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -58,7 +58,14 @@ class Compiler
return arglist; return arglist;
} }
static int Main(string[] args) static void Main(string[] args)
{
// FXBUG if we run a static initializer that starts a thread, we would never end,
// so we force an exit here
Environment.Exit(RealMain(args));
}
static int RealMain(string[] args)
{ {
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve); AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
System.Threading.Thread.CurrentThread.Name = "compiler"; System.Threading.Thread.CurrentThread.Name = "compiler";

Просмотреть файл

@ -74,7 +74,7 @@ public class NetExp
ProcessPrivateClasses(assembly); ProcessPrivateClasses(assembly);
zipFile.Close(); zipFile.Close();
} }
// HACK if we run on the "classpath" assembly, the awt thread gets started, // FXBUG if we run a static initializer that starts a thread, we would never end,
// so we force an exit here // so we force an exit here
Environment.Exit(0); Environment.Exit(0);
} }