Debugging a thread

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

Hello,

I am learning how to use threads and in the process learning how to debug
them as well.

I have created a thread that runs a stored procedure which takes about 20
minutes to run, which is why I want to use a thread.
I start the thread and I see it added to the thread list. While I am waiting
for it to complete and raise an event I look at the threads again and it is
now longer there. When I look at the output window it shows the following
line "The thread 'SyncDB' (0xa10) has exited with code 0 (0x0)". What doe's
this mean?

Thanks,
Bryan
 
Hi,
"The thread 'SyncDB' (0xa10) has exited with code 0 (0x0)". What doe's
this mean?
<,

This means that the thread has exited normally, with no error. Something
inside your thread code is allowing the thread to exit. If I were to guess,
there is action in the thread the should block, awaiting a return from SQL,
that isn't blocking.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Debugging multiple threads 1
Threads question 3
Starting a Thread takes too long 25
CPU usage too low! (with debugger attached) 0
Handling Threads 5
threading problem 5
invoking on the UI thread 5
Multi-Threading 9

Back
Top