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

[Non-text portions of this message have been removed]





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to