I have the something like the following code to start a new thread :
Sub StartThread()
Dim oProcessingObject As New MyObj.MyClass
Dim oThread As Thread
Dim oSomeObject as New SomeObject.SomeClass
oSomeObject.Property = "A value"
oThread = New Thread(AddressOf MyObj.MyClass)
oProcessingObject.oPropertySomeObject = oSomeObject
oThread.Start()
End Sub
Do I need to worry about how oSomeObject is destroyed ? Will the garbabge
collector simply clear it up when the thread has finished ?
Thanks
Steve