Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does a Thread Self Kill?
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Does a Thread Self Kill?
Environment versions
Environment:
VB.NET 1.1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01102581
Message ID:
01102581
Views:
75
I was just curious... if a new Thread is created using the following example:
    '***************************************
    ' Delegate Routines
    '***************************************
    Delegate Sub OriginalSubroutine(ByVal Parameter1 as String, ByVal Parameter2 as String, ByVal Parameter3 as String)

    Public Sub Test()
        '***************************************
        ' Initialize Variables
        '***************************************
        Dim objNewThread as New ThreadedSubroutine_Start(AddressOf OriginalSubroutine)

        '***************************************
        ' Activate Seperate Thread
        '***************************************
        objCreateDatabaseThread.BeginInvoke(Parameter1, Parameter2, Paremeter3, Nothing, Nothing)
    End Sub
OR
        '***************************************
        ' Initialize Variables
        '***************************************
        Dim objNewThread as New Threading.Thread(AddressOf SubToRun)

        '***************************************
        ' Activate Seperate Thread
        '***************************************
        objNewThread.Start()
...does the Thread "Dispose" of itself when the subroutine is completed?
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services


Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook
Next
Reply
Map
View

Click here to load this message in the networking platform