Click here to Skip to main content
15,880,891 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Is it possible to create a new process dynamically(ie. with out calling another exe) from c sharp application?
Thanks.
Posted
Comments
version_2.0 25-Aug-11 2:07am    
what do You mean by process.. Is it an another .exe file..?

Are you looking for Thread[^]?
[edit]
In that case, how about you create 2 Threads. One as producer which fetch data from web and place it into some data storage. And the second one (your main UI) grab the data from that data storage.
 
Share this answer
 
v2
Comments
sreejith_g 25-Aug-11 1:53am    
No, need separate process and also want to implement IPC.
Firo Atrum Ventus 25-Aug-11 1:58am    
Why do you need separate process?
sreejith_g 25-Aug-11 2:03am    
in application I need some web page grabbing requirement, and wants to isolate that portion from main application UI.
Firo Atrum Ventus 25-Aug-11 2:08am    
And why do you want that portion to be isolated from your application?
sreejith_g 25-Aug-11 2:15am    
It continuously fetch some information from a webpage - this operation causes hanging of main application and its UI , I wants to solve this problem..
C#
System.Diagnostics.Process.Start(name of the process/file);


if your UI is hanged due to continuous updation use Application.DoEvents(); before and after fetching values. it will refresh all threads and your UI will not hanged.
 
Share this answer
 
v3
Comments
sreejith_g 25-Aug-11 2:28am    
I think the above function invoke another exe and create a new process , my requirement create multiple(another) process from single exe application with out calling another file.(ie. like how we create a new thread)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900