dc

dc

  • NA
  • 663
  • 0

C# console app question

Sep 13 2012 2:14 PM
  I have a C# 2010 console application calling a second console application. I want the main calling console application to wait for the e_Process1 console application to quit running before the second console application is called with different parameter.
I want the main calling console application to look at values in a sql server 2008 database before calling the second console application with different parameters.
  When you look at the 2 lines of code listed below, you will see that the main console program is watiting for the second console application to run. However the main console application is stilling waiting.

   Code referecing to:

   e_Process1.Start();
   e_Process1.WaitForExit();

Thus can you tell me what you suggest I do to solve my problem? Either the second console application never quits executing and/or I need to use diferent statements.


Thus can you tell me what you suggest I do to solve my problem?

Answers (1)