G
Guest
My environment: VS 2k5 Team Software developer SP1, VB.Net, Web Service
I have a web service. I also have another class file. I am trying to call
a web service operation from within my private class file on another thread.
In my class file I have this
Private Sub MyPrivateSub()
Dim serv1 as MyWebServiceClass
Dim t1 as New System.Threading.Thread( _
New System.Threading.ThreadStart( _
AddressOf serv1.Operation1))
End Sub
I can't get past that line to create the thread. The error is
Method 'Public Function Operation1(byval Param1 as Object) as ReturnObject'
doesn't have the same signature as delegate 'Delegate Sub ThreadStart()'
The web serivce class has a parameter-less constructor.
Thanks for any help.
I have a web service. I also have another class file. I am trying to call
a web service operation from within my private class file on another thread.
In my class file I have this
Private Sub MyPrivateSub()
Dim serv1 as MyWebServiceClass
Dim t1 as New System.Threading.Thread( _
New System.Threading.ThreadStart( _
AddressOf serv1.Operation1))
End Sub
I can't get past that line to create the thread. The error is
Method 'Public Function Operation1(byval Param1 as Object) as ReturnObject'
doesn't have the same signature as delegate 'Delegate Sub ThreadStart()'
The web serivce class has a parameter-less constructor.
Thanks for any help.