How can I set the initial parameters of a thread? For example:
Notice that I don't want to wait for this operation to finish, I want only to set the initial parameters of the thread. And I don't want to use local variables because sub eheheheh can be called several times...VB Code:
private sub eheheheh() param1=0 param2=4 Dim x As New Threading.Thread(AddressOf DoOperation) x.Start() end sub Private sub DoOperation Result=param1+param2 'Do your stuff... end sub
Any ideas?
Thx,
Xmas79




Reply With Quote