Hi all.
I have a multithreaded little app that I am writing. Periodically, I see
messages on my console that read:
The thread '<No Name>' (0xa7c) has exited with code 0 (0x0).
Wheever I see this message, my threads appear to be dying prematurely,
althogh I am not calling Abort() or Suspend(). Also, if I put a try-catch
around the threaded code, I receive no exception. Any idea what could cause
such a thing?
Thanks,
Dave. 7 3518
The method the thread was called to run returned. Put a Console.Writeline
message before the method exists and inside your loops to track down why
(i.e. state change, eof, etc.)
--
William Stacey, DNS MVP
"Dave Rudolf" <da****************@hotmail.com> wrote in message
news:vn************@corp.supernews.com... Hi all.
I have a multithreaded little app that I am writing. Periodically, I see messages on my console that read: The thread '<No Name>' (0xa7c) has exited with code 0 (0x0). Wheever I see this message, my threads appear to be dying prematurely, althogh I am not calling Abort() or Suspend(). Also, if I put a try-catch around the threaded code, I receive no exception. Any idea what could
cause such a thing? Thanks, Dave.
be sure you have plenty of error handling in your threaded functions. If an
unhandled exception occurs in a thread other than the main one, the thread
will simply exit without any kind of error message or something to let you
know that an exception occurred.
Chris
"Dave Rudolf" <da****************@hotmail.com> wrote in message
news:vn************@corp.supernews.com... Hi all.
I have a multithreaded little app that I am writing. Periodically, I see messages on my console that read: The thread '<No Name>' (0xa7c) has exited with code 0 (0x0). Wheever I see this message, my threads appear to be dying prematurely, althogh I am not calling Abort() or Suspend(). Also, if I put a try-catch around the threaded code, I receive no exception. Any idea what could
cause such a thing? Thanks, Dave.
be sure you have plenty of error handling in your threaded functions. If an
unhandled exception occurs in a thread other than the main one, the thread
will simply exit without any kind of error message or something to let you
know that an exception occurred.
Chris
"Dave Rudolf" <da****************@hotmail.com> wrote in message
news:vn************@corp.supernews.com... Hi all.
I have a multithreaded little app that I am writing. Periodically, I see messages on my console that read: The thread '<No Name>' (0xa7c) has exited with code 0 (0x0). Wheever I see this message, my threads appear to be dying prematurely, althogh I am not calling Abort() or Suspend(). Also, if I put a try-catch around the threaded code, I receive no exception. Any idea what could
cause such a thing? Thanks, Dave.
You will see a lot of those if you are using classes that use the
threadpool, such as web services or network functions - as threadpool
threads die you will see that notification.
If you create your own threads you can name (Thread.Name) each one when you
create it so you can easily tell the difference between your threads and
system threads. If they are your threads that are terminating then you need
to figure out why.
"Dave Rudolf" <da****************@hotmail.com> wrote in message
news:vn************@corp.supernews.com... Hi all.
I have a multithreaded little app that I am writing. Periodically, I see messages on my console that read: The thread '<No Name>' (0xa7c) has exited with code 0 (0x0). Wheever I see this message, my threads appear to be dying prematurely, althogh I am not calling Abort() or Suspend(). Also, if I put a try-catch around the threaded code, I receive no exception. Any idea what could
cause such a thing? Thanks, Dave.
You will see a lot of those if you are using classes that use the
threadpool, such as web services or network functions - as threadpool
threads die you will see that notification.
If you create your own threads you can name (Thread.Name) each one when you
create it so you can easily tell the difference between your threads and
system threads. If they are your threads that are terminating then you need
to figure out why.
"Dave Rudolf" <da****************@hotmail.com> wrote in message
news:vn************@corp.supernews.com... Hi all.
I have a multithreaded little app that I am writing. Periodically, I see messages on my console that read: The thread '<No Name>' (0xa7c) has exited with code 0 (0x0). Wheever I see this message, my threads appear to be dying prematurely, althogh I am not calling Abort() or Suspend(). Also, if I put a try-catch around the threaded code, I receive no exception. Any idea what could
cause such a thing? Thanks, Dave.
I have a try-catch around the whole method that is getting called by the
ThreadStart.
"Chris LaJoie" <ch***@etriptrader.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl... be sure you have plenty of error handling in your threaded functions. If
an unhandled exception occurs in a thread other than the main one, the thread will simply exit without any kind of error message or something to let you know that an exception occurred.
Chris
"Dave Rudolf" <da****************@hotmail.com> wrote in message news:vn************@corp.supernews.com... Hi all.
I have a multithreaded little app that I am writing. Periodically, I see messages on my console that read: The thread '<No Name>' (0xa7c) has exited with code 0 (0x0). Wheever I see this message, my threads appear to be dying prematurely, althogh I am not calling Abort() or Suspend(). Also, if I put a
try-catch around the threaded code, I receive no exception. Any idea what could cause such a thing? Thanks, Dave.
I have a try-catch around the whole method that is getting called by the
ThreadStart.
"Chris LaJoie" <ch***@etriptrader.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl... be sure you have plenty of error handling in your threaded functions. If
an unhandled exception occurs in a thread other than the main one, the thread will simply exit without any kind of error message or something to let you know that an exception occurred.
Chris
"Dave Rudolf" <da****************@hotmail.com> wrote in message news:vn************@corp.supernews.com... Hi all.
I have a multithreaded little app that I am writing. Periodically, I see messages on my console that read: The thread '<No Name>' (0xa7c) has exited with code 0 (0x0). Wheever I see this message, my threads appear to be dying prematurely, althogh I am not calling Abort() or Suspend(). Also, if I put a
try-catch around the threaded code, I receive no exception. Any idea what could cause such a thing? Thanks, Dave.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: m |
last post by:
Hello,
I have an application that processes thousands of files each day. The
filenames and various related file information is retrieved, related
filenames are associate and placed in a linked...
|
by: Dave Rudolf |
last post by:
Hi all.
I have a multithreaded little app that I am writing. Periodically, I see
messages on my console that read:
The thread '<No Name>' (0xa7c) has exited with code 0 (0x0).
|
by: news.microsoft.com |
last post by:
I have a very multi-threaded Windows Forms application. There are many
BeginInvoke calls, as well as Thread/ThreadStarts.
My issue is that when I quit my application there are often threads...
|
by: mareal |
last post by:
I am using the System.Diagnostics.Process class in order to loop thru all the
processes running. Within that loop I am looking for the process name
“aspnet_wp” in order to get the process ID....
|
by: dast |
last post by:
Hi,
I'm having trouble letting my background thread tell my main thread what to
do.
I'm trying to tell my main thread to open a form, but when my background
thread ends, the form that I...
|
by: Ritesh Raj Sarraf |
last post by:
Hi,
I have a small application, written in Python, that uses threads.
The application uses function foo() to download files from the web. As it reads
data from the web server, it runs a progress...
|
by: Linny |
last post by:
Hi,
Came across this article in the ComputerWorld website which has
included C in the top ten dying languages.
The top 10 dead (or dying) computer skills...
|
by: Brainsludge |
last post by:
Hello,
I am running WinXP SP2 with Python 2.5.1 and encountered the following
issue:
I wrote a script that logs into my mail server, and checks for new
messages every 20 seconds. When a new...
|
by: jake |
last post by:
I am new to multi-threading. Here is my scenario:
foreach (<file in a certain folder>)
new Thread((ThreadStart)(delegate { processFile(<file>); })).Start();
sometimes misses firing some...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
| |