B
Bob Day
Using VS 2003, VB.NET, MSDE ...
I am surprised that certain things are creating threads listed in debugging
threading window (with no name or information, just the ID).
For example, the opening an SQL connection creates a thread, that remains
after the connection is closed. Such as the line below.
' test that SQL server is functioning by opening connnection. Note
that this tries repeatedly, so there is a delay before it errors out if it
is unavailable.
CD_Temp.Cnn_For_CSolutionDatabaseSQL.Open()
The name of the thread before and after the .OPEN line above is
"Main_Thread" (as expected), but in the threads window after the .OPEN line
it adds a new thread that says:
ID Name Location Priority
736 <No Name> (blank) Highest
Why is this created? Can I/Should I .abort the thread (I don't see how)?
Should I worry about it? Will garbage collection eventually get rid of it
anyway?
Does .NET create its own threads to do things (such as above) behind the
scenes, or do threads have to be explictly created in code? (obvisouly,
based on this post, I guess the first part or that statement is accurate).
Thanks
Bob
I am surprised that certain things are creating threads listed in debugging
threading window (with no name or information, just the ID).
For example, the opening an SQL connection creates a thread, that remains
after the connection is closed. Such as the line below.
' test that SQL server is functioning by opening connnection. Note
that this tries repeatedly, so there is a delay before it errors out if it
is unavailable.
CD_Temp.Cnn_For_CSolutionDatabaseSQL.Open()
The name of the thread before and after the .OPEN line above is
"Main_Thread" (as expected), but in the threads window after the .OPEN line
it adds a new thread that says:
ID Name Location Priority
736 <No Name> (blank) Highest
Why is this created? Can I/Should I .abort the thread (I don't see how)?
Should I worry about it? Will garbage collection eventually get rid of it
anyway?
Does .NET create its own threads to do things (such as above) behind the
scenes, or do threads have to be explictly created in code? (obvisouly,
based on this post, I guess the first part or that statement is accurate).
Thanks
Bob