Click here to Skip to main content
15,910,661 members
Home / Discussions / C#
   

C#

 
QuestionC# Removing Excel object from Task Manager Pin
dsrao12-Sep-05 14:24
dsrao12-Sep-05 14:24 
AnswerRe: C# Removing Excel object from Task Manager Pin
LeenaSo12-Sep-05 19:59
LeenaSo12-Sep-05 19:59 
AnswerRe: C# Removing Excel object from Task Manager Pin
minhpc_bk12-Sep-05 21:18
minhpc_bk12-Sep-05 21:18 
AnswerRe: C# Removing Excel object from Task Manager Pin
miah alom13-Sep-05 5:37
miah alom13-Sep-05 5:37 
GeneralRe: C# Removing Excel object from Task Manager Pin
dsrao13-Sep-05 8:23
dsrao13-Sep-05 8:23 
GeneralRe: C# Removing Excel object from Task Manager Pin
dsrao13-Sep-05 8:50
dsrao13-Sep-05 8:50 
GeneralRe: C# Removing Excel object from Task Manager Pin
Anonymous13-Sep-05 15:22
Anonymous13-Sep-05 15:22 
QuestionRead deadlock on child process Pin
brucemo12-Sep-05 13:36
brucemo12-Sep-05 13:36 
I am trying to create a child process and listen to it and talk to it.

I am using what I think is the standard model: I create the process with "UseShellExecute" set to false, and use a streamwriter and a streamreader to read and write.

The child process writes some data to the console (redirected to me), then waits for me to write back. If I don't write back, it sits there forever.

The problem I am having is that sometimes it writes a few K bytes of stuff at once. When it does this, the last few lines do not get written, and so I sit there forever in my process, waiting for the rest of the stuff to be written.

If it writes smaller amounts of stuff at one time, it seems to work fine. I only have problems when it starts writing lots of stuff pretty quickly.

The child process runs in other cases where it is called from processes (non-C# apps), and I am certain that I am doing a "fflush(stdout)" after ever write in there anyway (the child process is written in C, and it does all of its writing through one function, which has a "fflush(stdout)").

All of the reading is taking place inside a thread, but I don't think this is the problem because (apparently) nothing outside of the thread is touching the streamreader.

I'm at the point where I'm wondering if this is a known bug in streamreader? Does it barf if its buffer fills up?

Anyone have any ideas about how to do a workaround?

Thank you,

bruce

AnswerRe: Read deadlock on child process Pin
S. Senthil Kumar12-Sep-05 18:44
S. Senthil Kumar12-Sep-05 18:44 
GeneralRe: Read deadlock on child process Pin
brucemo12-Sep-05 20:04
brucemo12-Sep-05 20:04 
QuestionIssue with Form Sizing Pin
DeepToot12-Sep-05 11:57
DeepToot12-Sep-05 11:57 
AnswerRe: Issue with Form Sizing Pin
Christian Graus12-Sep-05 12:48
protectorChristian Graus12-Sep-05 12:48 
GeneralRe: Issue with Form Sizing Pin
DeepToot13-Sep-05 4:32
DeepToot13-Sep-05 4:32 
QuestionNeed to write a Form that accepts dropping files dragged from Explorer Pin
12-Sep-05 11:26
suss12-Sep-05 11:26 
AnswerRe: Need to write a Form that accepts dropping files dragged from Explorer Pin
Member 103390712-Sep-05 12:21
Member 103390712-Sep-05 12:21 
AnswerRe: Need to write a Form that accepts dropping files dragged from Explorer Pin
Mohamad Al Husseiny12-Sep-05 12:43
Mohamad Al Husseiny12-Sep-05 12:43 
QuestionDeserializer question Pin
Tom Wright12-Sep-05 11:23
Tom Wright12-Sep-05 11:23 
AnswerRe: Deserializer question Pin
S. Senthil Kumar12-Sep-05 15:26
S. Senthil Kumar12-Sep-05 15:26 
Questionlength Pin
xilefxilef12-Sep-05 10:57
xilefxilef12-Sep-05 10:57 
QuestionMoving files Pin
BECK712-Sep-05 7:11
BECK712-Sep-05 7:11 
AnswerRe: Moving files Pin
leppie12-Sep-05 7:23
leppie12-Sep-05 7:23 
AnswerRe: Moving files Pin
KaptinKrunch12-Sep-05 7:44
KaptinKrunch12-Sep-05 7:44 
GeneralRe: Moving files Pin
BECK712-Sep-05 10:04
BECK712-Sep-05 10:04 
GeneralRe: Moving files Pin
KaptinKrunch12-Sep-05 14:16
KaptinKrunch12-Sep-05 14:16 
QuestionMailer Application Pin
GalRatz12-Sep-05 6:24
GalRatz12-Sep-05 6:24 

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.