Click here to Skip to main content
15,898,222 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow to have multithread on a socket (one thread read, other thread write) Pin
Spulit8-Mar-07 6:27
Spulit8-Mar-07 6:27 
AnswerRe: How to have multithread on a socket (one thread read, other thread write) Pin
led mike8-Mar-07 7:31
led mike8-Mar-07 7:31 
GeneralRe: How to have multithread on a socket (one thread read, other thread write) Pin
Spulit8-Mar-07 7:39
Spulit8-Mar-07 7:39 
GeneralRe: How to have multithread on a socket (one thread read, other thread write) Pin
pbraun8-Mar-07 9:18
pbraun8-Mar-07 9:18 
GeneralRe: How to have multithread on a socket (one thread read, other thread write) Pin
Spulit8-Mar-07 14:19
Spulit8-Mar-07 14:19 
GeneralRe: How to have multithread on a socket (one thread read, other thread write) Pin
led mike9-Mar-07 4:30
led mike9-Mar-07 4:30 
QuestionHow multiple instances listen to a UDP socket Pin
nsutanto8-Mar-07 5:08
nsutanto8-Mar-07 5:08 
QuestionProcess component and redirecting standard output Pin
SquidDigger8-Mar-07 4:09
SquidDigger8-Mar-07 4:09 
We are presently upgrading from .Net 2003 to 2005. We have an application that invokes an FTP client asynchronously via a process component, redirecting standard output to a log file. In .Net 2003, all of standard output is redirected to the log file, however, in .Net 2005, only the commands we are passing to the ftp client are redirected to the log file. All of the FTP responses ie: “1000 bytes transmitted in 2 seconds”, etc. are not redirected to the log file.

The relevant lines of code are as follows:

Dim myProcess As New Process
myProcess.StartInfo.FileName = "FTP.exe"
myProcess.StartInfo.UseShellExecute = False
myProcess.StartInfo.RedirectStandardOutput = True
myProcess.Start()

Dim myStreamReader As StreamReader = myProcess.StandardOutput
Dim myStreamWriter As StreamWriter = File.AppendText(“myLog.txt”)
While Not sLine Is Nothing
myStreamWriter.WriteLine(sLine)
sLine = myStreamReader.ReadLine()
End While
myProcess.WaitForExit()

Does anyone know if changes were made with regard to the redirect of standard output for process components?
Thanks in advance for your replies.
QuestionBreakpoint will not currently be hit Pin
TeachesOfPeaches7-Mar-07 11:03
TeachesOfPeaches7-Mar-07 11:03 
AnswerRe: Breakpoint will not currently be hit Pin
Vasudevan Deepak Kumar7-Mar-07 11:15
Vasudevan Deepak Kumar7-Mar-07 11:15 
GeneralRe: Breakpoint will not currently be hit Pin
TeachesOfPeaches7-Mar-07 12:42
TeachesOfPeaches7-Mar-07 12:42 
AnswerRe: Breakpoint will not currently be hit Pin
kubben7-Mar-07 12:57
kubben7-Mar-07 12:57 
GeneralRe: Breakpoint will not currently be hit Pin
TeachesOfPeaches8-Mar-07 5:17
TeachesOfPeaches8-Mar-07 5:17 
AnswerRe: Breakpoint will not currently be hit Pin
Dave Kreskowiak8-Mar-07 4:32
mveDave Kreskowiak8-Mar-07 4:32 
GeneralRe: Breakpoint will not currently be hit Pin
TeachesOfPeaches8-Mar-07 9:47
TeachesOfPeaches8-Mar-07 9:47 
GeneralRe: Breakpoint will not currently be hit Pin
Vasudevan Deepak Kumar9-Mar-07 6:19
Vasudevan Deepak Kumar9-Mar-07 6:19 
GeneralRe: Breakpoint will not currently be hit Pin
TeachesOfPeaches9-Mar-07 11:54
TeachesOfPeaches9-Mar-07 11:54 
QuestionWebConfig Section for .NET Framework 3.0 Pin
Vasudevan Deepak Kumar7-Mar-07 10:47
Vasudevan Deepak Kumar7-Mar-07 10:47 
QuestionSockets issue, how to listen to UDP socket for multiple instances Pin
nsutanto7-Mar-07 10:36
nsutanto7-Mar-07 10:36 
QuestionMultithreading Local Variables Pin
MikeMarq7-Mar-07 8:09
MikeMarq7-Mar-07 8:09 
AnswerRe: Multithreading Local Variables Pin
Leslie Sanford7-Mar-07 8:21
Leslie Sanford7-Mar-07 8:21 
GeneralRe: Multithreading Local Variables Pin
MikeMarq7-Mar-07 10:49
MikeMarq7-Mar-07 10:49 
AnswerRe: Multithreading Local Variables Pin
arcticbrew7-Mar-07 19:19
arcticbrew7-Mar-07 19:19 
QuestionDo Events causing overflow Pin
earlgraham7-Mar-07 8:04
earlgraham7-Mar-07 8:04 
AnswerRe: Do Events causing overflow Pin
Scott Page7-Mar-07 12:46
professionalScott Page7-Mar-07 12:46 

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.