Hi,
 
I want to call various Exe's. All the exe's are also written in .net. I am trying like the code below. But the problem is, it making the system to hang.
The exe's are called properly, But the system is hanged. Getting some popup for debug the JIT compiler window.
Where i am doing the mistake.
Should i create the multiple instance of the process and assign the exe to it and start the process or with the single instance of process start multiple exe's.
Should i implement Multithreading in it ?? But i donot know how to implement it.
Is it sufficient if i include [MTAThread] in the beginning of the function in the BLL class. will it be sufficient enough to run all the processes.
Pls guide me how to invoke various exe's simultaneously and give better performance.
 
System.Diagnostics.Process objProcess ;

for(int i = 0; i < dvTasks.Count; i++)

{

objProcess = new System.Diagnostics.Process();

objProcess.StartInfo.FileName = dvTasks[i]["ScheduledTaskTypeExePath"].ToString() ;

objProcess.StartInfo.Arguments = dvTasks[i]["ScheduledTaskTypeDefaultParameter"].ToString() ;

objProcess.Start();

EventLogWriter.WriteToEventLog(dvTasks[i]["ScheduledTaskTypeName"] + " is Invoked Successfully");

}

Regards,
Krishnan


YAHOO! GROUPS LINKS




Reply via email to