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.
 
Back
Top