Created
June 27, 2017 11:27
-
-
Save mgravell/5adedecf35db44582ae51599dc9da727 to your computer and use it in GitHub Desktop.
thread exiting cleanly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[STAThread] | |
static void Main() | |
{ | |
new Thread(() => | |
{ | |
Application.EnableVisualStyles(); | |
Application.SetCompatibleTextRenderingDefault(false); | |
Console.WriteLine("running form"); | |
Application.Run(new Form1()); | |
Console.WriteLine("thread exited"); | |
}).Start(); | |
Console.WriteLine("Running app on another thread"); | |
Console.ReadLine(); | |
Console.WriteLine("exiting"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment