Click here to Skip to main content
15,902,198 members
Home / Discussions / C#
   

C#

 
GeneralRe: Serial port Pin
Luc Pattyn3-Dec-08 5:39
sitebuilderLuc Pattyn3-Dec-08 5:39 
QuestionRemote File Read Pin
CodingYoshi2-Dec-08 11:49
CodingYoshi2-Dec-08 11:49 
AnswerRe: Remote File Read Pin
Samer Aburabie2-Dec-08 12:36
Samer Aburabie2-Dec-08 12:36 
GeneralRun CMD, and stream the output, instead of waiting for cmd to be done running. Pin
cscartman2-Dec-08 10:59
cscartman2-Dec-08 10:59 
GeneralRe: Run CMD, and stream the output, instead of waiting for cmd to be done running. Pin
Samer Aburabie2-Dec-08 12:42
Samer Aburabie2-Dec-08 12:42 
GeneralRe: Run CMD, and stream the output, instead of waiting for cmd to be done running. Pin
cscartman2-Dec-08 19:11
cscartman2-Dec-08 19:11 
GeneralRe: Run CMD, and stream the output, instead of waiting for cmd to be done running. Pin
leppie2-Dec-08 20:53
leppie2-Dec-08 20:53 
GeneralRe: Run CMD, and stream the output, instead of waiting for cmd to be done running. Pin
Luc Pattyn2-Dec-08 21:42
sitebuilderLuc Pattyn2-Dec-08 21:42 
Hi,

yes you can capture stdout and stderr outputs from another process while it is still running, which gives
a much better user experience than performing a ReadToEnd() and wait until the process has exited.

The general solution requires two extra threads, basically identcial, one to handle stdout and one to handle stderr.
Each thread should loop and read its stream, and process it in any way you see fit.
Both threads should be terminated a few seconds AFTER your target process has exited, there still is data
in the stream when the process exits!
I got this to work easily on XP and Vista, but found it impossible coming up with code that would also run
fine on Win98 (that was on .NET 1.1 at the time).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


QuestionNotSupportedException Pin
Developer6112-Dec-08 10:19
Developer6112-Dec-08 10:19 
AnswerRe: NotSupportedException Pin
Paul Conrad2-Dec-08 10:35
professionalPaul Conrad2-Dec-08 10:35 
AnswerRe: NotSupportedException Pin
Christian Graus2-Dec-08 12:03
protectorChristian Graus2-Dec-08 12:03 
GeneralRe: NotSupportedException Pin
Member 53148902-Dec-08 19:00
Member 53148902-Dec-08 19:00 
GeneralRe: NotSupportedException [modified] Pin
Luc Pattyn2-Dec-08 21:48
sitebuilderLuc Pattyn2-Dec-08 21:48 
GeneralRe: NotSupportedException Pin
Member 53148902-Dec-08 23:35
Member 53148902-Dec-08 23:35 
GeneralRe: NotSupportedException Pin
Luc Pattyn2-Dec-08 23:51
sitebuilderLuc Pattyn2-Dec-08 23:51 
QuestionHow do I change Gridview Cell Color Pin
jesse342-Dec-08 9:55
jesse342-Dec-08 9:55 
AnswerRe: How do I change Gridview Cell Color Pin
Samer Aburabie2-Dec-08 10:20
Samer Aburabie2-Dec-08 10:20 
GeneralRe: How do I change Gridview Cell Color Pin
Paul Conrad2-Dec-08 10:38
professionalPaul Conrad2-Dec-08 10:38 
GeneralRe: How do I change Gridview Cell Color Pin
Samer Aburabie2-Dec-08 11:16
Samer Aburabie2-Dec-08 11:16 
GeneralRe: How do I change Gridview Cell Color Pin
Paul Conrad2-Dec-08 11:19
professionalPaul Conrad2-Dec-08 11:19 
GeneralRe: How do I change Gridview Cell Color Pin
Samer Aburabie2-Dec-08 11:30
Samer Aburabie2-Dec-08 11:30 
GeneralRe: How do I change Gridview Cell Color Pin
Paul Conrad2-Dec-08 11:32
professionalPaul Conrad2-Dec-08 11:32 
GeneralRe: How do I change Gridview Cell Color Pin
Samer Aburabie2-Dec-08 11:43
Samer Aburabie2-Dec-08 11:43 
GeneralRe: How do I change Gridview Cell Color Pin
jesse342-Dec-08 12:21
jesse342-Dec-08 12:21 
GeneralRe: How do I change Gridview Cell Color Pin
jesse342-Dec-08 10:40
jesse342-Dec-08 10:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.