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

About Threads in VB.NET

Hi,

Why do I get this message :
"The thread '3201' (0x5e8) has exited with code 0 (0x0)." But my
application has not exited yet. This message appear after I created my
thread.

Thank you!

Nov 20 '05 #1
4 1169
"User" <gu***@guest.com> schrieb
Hi,

Why do I get this message :
"The thread '3201' (0x5e8) has exited with code 0 (0x0)." But my
application has not exited yet. This message appear after I created
my thread.


Maybe your thread already exited?
Maybe it's the garbage collector working in the background.

For better identification, set the name of your own threads (including the
main thread).
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
You get then in debug mode when a thread terminates.

"User" <gu***@guest.com> wrote in message
news:mAskc.44650$NG2.5749@edtnps84...
Hi,

Why do I get this message :
"The thread '3201' (0x5e8) has exited with code 0 (0x0)." But my
application has not exited yet. This message appear after I created my
thread.

Thank you!

Nov 20 '05 #3
Thank you for your reply, I'll name my main thread.

I have another question. Is it possible to deliver a message to all my
threads. Ex: if I have 10 threads (one for each of my clients connected
to my application) all doing the same stuff, can I send the message
"test" to all of them ? Expecting to have parallelism in all the
threads execution.

Thank you very much.

Armin Zingler wrote:
"User" <gu***@guest.com> schrieb
Hi,

Why do I get this message :
"The thread '3201' (0x5e8) has exited with code 0 (0x0)." But my
application has not exited yet. This message appear after I created
my thread.

Maybe your thread already exited?
Maybe it's the garbage collector working in the background.

For better identification, set the name of your own threads (including the
main thread).


Nov 20 '05 #4
"User" <gu***@guest.com> schrieb

I have another question. Is it possible to deliver a message to all
my threads. Ex: if I have 10 threads (one for each of my clients
connected to my application) all doing the same stuff, can I send
the message "test" to all of them ? Expecting to have parallelism
in all the threads execution.

Depends on the purpose and what the main loop of the threads do. You could
add a message to a synchronized object (e.g. an Arraylist) that each thread
checks from time to time.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5

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

Similar topics

0
by: Nick Marden | last post by:
I am trying to use threads::shared to make a thread-safe object. It appears to be the case that copying a blessed-then-shared reference to another shared variable keeps the underlying structure...
5
by: Peter Kirk | last post by:
Hi, I see in the ThreadPool documentation that the pool has a default limit of 25 threads. Is it correctly understood that this limit is for my entire application? So if I have several...
2
by: Servé Lau | last post by:
I have been rewriting a C++ isapi into a C# asp.net application, but because it was my first one and created within a tight schedule I have some questions to make sure if I did it right. 1. Does...
3
by: Henri | last post by:
1) Do Shared methods always need to be synchronised to be thread-safe? 2) Why must SyncLock be used with a reference type? I can't get the relation between threads and a type. Thanks for your...
6
by: Roka | last post by:
Hi all. I'm reading a program which used the sentence below: #define NUM_THREADS 10 ... ... int rand_num; rand_num = 1+ (int) (9.0 * rand() / (RAND_MAX + 1.0)); sleep(rand_num); ... ......
3
by: michdoh | last post by:
Hi All I'm looking for some help on creating a basic multi threaded application. i'n new to threads in this environment so for test purposes I've produced a very basic program. (which doesn't...
7
by: Diego F. | last post by:
Hello. I have a doubt about multi-threading, if it is or not the best way to achieve the following: I have a server application that listens a port through a socket. A client will send messages...
18
by: Jon Slaughter | last post by:
"Instead of just waiting for its time slice to expire, a thread can block each time it initiates a time-consuming activity in another thread until the activity finishes. This is better than...
5
by: FP | last post by:
Hi, i'm currently developing a class to communicate with a serial device,using the SerialPort component. Basically,the main application will interact with this class through its method "Call",the...
19
by: =?ISO-8859-1?Q?Nordl=F6w?= | last post by:
I am currently designing a synchronized queue used to communicate between threads. Is the code given below a good solution? Am I using mutex lock/unlock more than needed? Are there any resources...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
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...
0
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
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 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.