I have a class that is written to display logging messages to a Form that I wrote. Because I don't want any other code to be stopped by the Form I decided to run the it in a separate thread. That thread however does not seem to be working.
This is the calling code:
Expand|Select|Wrap|Line Numbers
- windowThread = new Thread(new ThreadStart(Log.startWindow));
- windowThread.Name = "Window";
- windowThread.Start();
Expand|Select|Wrap|Line Numbers
- public static void startWindow()
- {
- MessageBox.Show("HEY YOU");
- LogWindow form = new LogWindow();
- Window = form;
- form.ShowDialog();
- }
I've tried putting a breakpoint in the method but it never does anything. I can however see in the Threads window that the it does start and run. It just doesn't do anything.
The part that is really bothering me is that this code has worked in the past. I wrote a demonstration application that used this project as a library and it worked fine. Since then this code hasn't been touched.
Thanks in advance for you help,
Fr33dan
Edit: Crap wrote all this then realized I was in the wrong forum. Is it possible for a someone to move this to the C# forum?