Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. protected void T(object obj)
  2. {
  3. Window w = new Window() { Width = 1024, Height = 768 };
  4. w.Show();
  5. Thread.Sleep(1000);
  6. w.Close();
  7. }
  8. private void Something()
  9. {
  10. Thread t = new Thread(new ParameterizedThreadStart(T));
  11. t.SetApartmentState(ApartmentState.STA);
  12. t.Priority = ThreadPriority.Normal;
  13. t.Start();
  14. GC.Collect();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement