473,326 Members | 2,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Console Redirection (to Herfried K. Wagner)

Hi Herfried,
First I want to mention, that I am new to programming.
I am looking at Redirect Console sample of yours at
dotnet.mvps.org/dotnet/samples/misc/.
You have put some description, but it is in deutsche.
I've tried to make a class, containing the functionality of your app but I
am kind of lost.
There are some things that I don't understand how Threads, whici grabs the
StandartOutput and StandertError keep running. I see you start the thread,
but basicly I should stop when the method which thread is running finishes
it's job. I can't see what keeps it running.
Every time a line is generated in StandartOutput of the app, the thread
method grabs it an put it on TextBox.
Also I can't figure out if this is put in a class, how to store the output
data and how the calling method should know there is any data and read it.
Can you or some one else help me, please?

Thanks in advance

P.S. Plase if you have time, make the description of the sample app in
english and the comments in the code also.
Nov 21 '05 #1
0 784

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
by: Jeff S | last post by:
Whenever I execute any Console commands (Console.WriteLine "yada yada yada"), the console does not appear. It doesn't even flash by. I want to be able to use Console commands. Any ideas? I'm...
2
by: Jason Carter | last post by:
What window should the Console.WriteLine display at? The immediate window? If so, it is printing there and I don't know why.
5
by: Klaus Löffelmann | last post by:
Hi, it may be a stupid question and maybe I'm not seeing the wood for the trees, but how do I let the console window remaining open after the app terminates? (Console.Readline as last code...
6
by: JM | last post by:
Hi, I need a function for a character based program (console) that works exactly like the INKEY$() function in (old) QBasic: Read only 1 keystroke and then move on. Console.Read;...
2
by: Jarod_24 | last post by:
I'm working on a console-view for my application wich is kinda a replacement for the orignal cmd.exe in windows xp. I could simply use .Write() to do that, but how do i paste the text so that...
2
by: Scott Kilbourn | last post by:
Hi, I have a little console app that just does a little bit of processing. The last thing I want it to do before it exists is stick a string onto the clipboard. I will then access the...
2
by: Dave Taylor | last post by:
I'm writing an app in VB.NET that provides a user-interface to computer simulation model that runs as a console process. I would like to have the console output redirected to my VB.NET program and...
2
by: Dave | last post by:
What is the method I need to invoke to have a console application pause for user input before continuing execution? IOW, I need the console app to execute, display a prompt, pause for the user...
6
by: johnnyG | last post by:
Greetings, Since Main() is a subroutine in VB.NET console apps and not a function, is there a way to return a value to a script ro other "caller" for a VB.NET console .exe? sub main() like if...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.