473,320 Members | 1,933 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,320 software developers and data experts.

Discarding "Thread has excited... " output

Hello,

I am using threads in my program and getting hundreds of
"the thread has exited..." messages.

Is there a way to discard the output of these messages?
Regards,

Martin
Feb 8 '07 #1
5 1722
I would advise against that. I think you should find out why it is doing it
first and fix it.

But anyhow to bypass it try:

try
{
// you're code
}
catch (Exception e)
{
// you can read the error code in e.Message
}

hope this helps.

"Martin Pöpping" <ma******@despammed.comwrote in message
news:eq**********@newsreader3.netcologne.de...
Hello,

I am using threads in my program and getting hundreds of
"the thread has exited..." messages.

Is there a way to discard the output of these messages?
Regards,

Martin

Feb 11 '07 #2
Kfir M schrieb:
I would advise against that. I think you should find out why it is doing it
first and fix it.
Ahhh! So this is really an error?

I am also getting it, when I do not use threads sometimes.
Maybe because of the STAThread.

So why does this error occur normally?
Regards,
Martin

--
Linux wird nie das meistinstallierte Betriebssystem sein.
Bedenken nur, wie oft man Windows neu installieren muss!
Feb 11 '07 #3
This error occurs when you try to access a thread that has completed and
exited. It is normal to get it. However, if you get it when you aren't
expecting to get it, you need to debug your thread to find out why it is
exiting early.

Mike Ober.

"Martin Pöpping" <ma******@despammed.comwrote in message
news:eq**********@newsreader3.netcologne.de...
Kfir M schrieb:
>I would advise against that. I think you should find out why it is doing
it first and fix it.

Ahhh! So this is really an error?

I am also getting it, when I do not use threads sometimes.
Maybe because of the STAThread.

So why does this error occur normally?
Regards,
Martin

--
Linux wird nie das meistinstallierte Betriebssystem sein.
Bedenken nur, wie oft man Windows neu installieren muss!

Feb 12 '07 #4
Michael D. Ober schrieb:
This error occurs when you try to access a thread that has completed and
exited. It is normal to get it. However, if you get it when you aren't
expecting to get it, you need to debug your thread to find out why it is
exiting early.
Ok an if it is normal to get it and i am expecting to get it...
Is the only way to discard it to use try/catch?

My current solution is to use a logging api and to write these errors to
a special log-file.
Regards,

Martin
--
Linux wird nie das meistinstallierte Betriebssystem sein.
Bedenken nur, wie oft man Windows neu installieren muss!
Feb 12 '07 #5
"Martin Pöpping" <ma******@despammed.comwrote in message
news:eq**********@newsreader3.netcologne.de...
Michael D. Ober schrieb:
>This error occurs when you try to access a thread that has completed and exited. It is
normal to get it. However, if you get it when you aren't expecting to get it, you need
to debug your thread to find out why it is exiting early.

Ok an if it is normal to get it and i am expecting to get it...
Is the only way to discard it to use try/catch?

My current solution is to use a logging api and to write these errors to a special
log-file.
You should only get these messages when running in the debugger, are you sure you get this
running release mode code?
Also, can you post the exact message you get?

Willy.

Feb 12 '07 #6

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

Similar topics

9
by: rnn98 | last post by:
hi, my multithread application, running under solaris box, is crashing eventually. I tried to spot and substitute functions not "thread safe", but I guess my search wasn't good enough. I have put...
0
by: Carl Rosenberger | last post by:
Hi all, my application does a lot of threading. The output window becomes completely unusable because of all the "thread exited" messages popping up. Is there any way to stop them? ...
12
by: MuZZy | last post by:
Hi, Sorry for a repeated post but i didn't receive an answer and will try to re-phrase my question: How do i close an additional thread from the main thread, if this additional thread is stuck...
3
by: Stephen Miller | last post by:
I have an ASP.Net application that sends a NetworkStream to a .Net Service, which has a TcpListener listening on a port for the ASP.Net client. When it receives a request it creates a new thread...
22
by: Brett | last post by:
I have a second thread, t2, that errors out and will stop. It's status is then "Stopped". I try to start t2 from thread 1, t1, by checking If t2.threadstate = "Stopped" Then t2.start() ...
4
by: R.A.M. | last post by:
Hello, Could you help me plase? I have an ASP.NET page with "Search" button; when button is clicked Search_Click is called; here's the code: protected void Search_Click(object sender, EventArgs...
1
by: R.A.M. | last post by:
Hello, Could you help me plase? I am describing my problem second time because I haven't got a solution. I have an ASP.NET page with "Search" button; when button is clicked Search_Click is...
1
by: MrNobody | last post by:
I have tons of thread running and closing and this output is driving me nuts. How do I get ri dof it?
5
by: Neil | last post by:
Hi, Long story short, we use "Server.Execute" to grab the output from an ASPX page ... Server.Execute("page.aspx", textWriter); We've noticed that intermittantly, we get a "Thread was being...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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...
0
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...
0
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...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.