Reply
system.diagnostics.process.start() bug
Old 10-01-2007, 12:59 PM system.diagnostics.process.start() bug
Junior Talker

Posts: 2
Name: yuval
I'm having some troubles with the start function in system.diagnostics.process in .net (csharp). Sometimes when I call start() to another exe file it gets stuck and the application can't proceed anymore. Is this a known bug? Any ideas?
yuval123 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 10-01-2007, 05:50 PM Re: system.diagnostics.process.start() bug
Learning Newbie's Avatar
Moderator

Latest Blog Post:
Dick Cheney as a Web Comic
Posts: 4,622
Name: John Alexander
More info?

Gets stuck you mean like hangs? Throws an exception? What?

Look into the overrides to Start, or, use a ProcessStartInfo object to describe what you want to do. Set it to multitask (I would think this should be the default) and not to block your program while it runs.
__________________
4 ways to improve the lives of the "bottom billion"

"HEY YOU KIDS GET OFF MY LAWN!" -John McCain
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 10-02-2007, 03:34 AM Re: system.diagnostics.process.start() bug
Junior Talker

Posts: 2
Name: yuval
This is my code:

1.Process p = newProcess();
2.p.StartInfo.FileName = strKitsEditorPath;
3.p.StartInfo.Arguments = CurrentKit.Path +
"," + m_strSection + "," + m_strKey;
4.p.Start();
5.p.WaitForExit();

After line 4 the calling process gets stuck - the screen turns white and I have to kill it. I don't get back to line 5. There is no problem with the process I'm calling to. But it doesn't happen every time..
Thanks
yuval123 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to system.diagnostics.process.start() bug
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11353 seconds with 13 queries