Windows Console Application Getting Stuck (Needs Key Press) [duplicate]
This question already has an answer here: How and why does QuickEdit mode in Command Prompt freeze applications? 2 answers I have a console program that has different components that run like this: void start() { while(true){ DoSomething(); Thread.Sleep(1000*5); } } My main entry point looks like [pseudo-ish code] Thread.Start(Componenet1.Start); Thread.Start(Componenet2.Start); while(true){ Console.Writeline("running"); Thread.Sleep(1000*5); } There are no Console.Reads anywhere. My problem is SOMETIMES the application will be running great but then stop and if I press any key on the window