2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
public class myClass
{
public string value;
public main()
{
execute();
}
public void execute()
{
Process myProcess = null;
myProcess = new Process();
ProcessStartInfo myProcessStartInfo = new ProcessStartInfo("perl.exe
myProcessStartInfo.Argumen
myProcess.OutputDataReceiv
myProcess.Start();
myProcess.WaitForExit();
myProcess.BeginOutputReadL
}
public void myProcess_OutputDataReceiv
{
value = "test";
execute2();
}
public void execute2()
{
// value is unassigned
}
}
Main Topics
Browse All Topics





by: p_davisPosted on 2009-09-15 at 13:27:54ID: 25339036
what about calling execute2 when the value is assigned in the event of the output being received?