Ill be the first to admit this is way beyond my current scope as a VB
programmer but Im learning as I go.
I playing with the new Threading features exposed by the 2.0 framework and
have writting a very simple application that executes three sequential
tasks, the second of which I send off on its on thread and it take a very
long time, so the order of completion should be Task1, Task3, Task2.
This all works, as astounding as I found that, and I am moving on to more
complex tasks with Threading, which leads me to:
When I send my second task on its on thread I use the following code:
myPingThread = New System.Threading.Thread(AddressOf myPingSub)
myPingThread.Start()
The problem here is that I cannot seem to pass an arguement to the myPingSub
as "addressof operand must be the name of a method without parentheses".
Can any of you more advanced VB guys assist me here in what Im overlooking?
How, when setting a function off on its on thread, can I pass it a value?
Thanks,
chrisj