Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



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

Posts: 2
Name: yuval
Trades: 0
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
 
 
Register now for full access!
Old 10-01-2007, 06:50 PM Re: system.diagnostics.process.start() bug
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 10-02-2007, 04:34 AM Re: system.diagnostics.process.start() bug
Junior Talker

Posts: 2
Name: yuval
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.11598 seconds with 12 queries