O
OSVBNET
Guest
Hi,
Here's how I start a Thread:
...
Dim Threads As New Thread(New ParameterizedThreadStart(AddressOf MyThread))
Threads.Start()
End Sub
Private Sub MyThread()
...
I get the following error ONLY if I Enable Option Strict:
Method 'Private Sub MyThread()' does not have a signature compatible with delegate 'Delegate Sub ParameterizedThreadStart(obj As Object)'.
Please advise how to eliminate this error?
Thanks for the help.
Continue reading...
Here's how I start a Thread:
...
Dim Threads As New Thread(New ParameterizedThreadStart(AddressOf MyThread))
Threads.Start()
End Sub
Private Sub MyThread()
...
I get the following error ONLY if I Enable Option Strict:
Method 'Private Sub MyThread()' does not have a signature compatible with delegate 'Delegate Sub ParameterizedThreadStart(obj As Object)'.
Please advise how to eliminate this error?
Thanks for the help.
Continue reading...