Last post Mar 11, 2013 05:59 AM by Angie xu - MSFT
Mar 07, 2013 01:37 PM|Paulicus|LINK
Ok so I am having the simplest problem, but I can not find anything on this stuff ..well anything to help.
My thought is this.
Run Thread 1 get Info
Run thread 2 process Info , Run Thread 1 Get info 2
Complete Thread 2
Run thread 2 process info 2, Run thread 1 get info 3
This is what I have where Add Num is Public Function in the same
Dim Thread1, Thread2 As System.Threading.Thread
Thread1 = New Thread(AddressOf AddNum)
Thread1.IsBackground = True
Mar 07, 2013 01:43 PM|Paulicus|LINK
Error 3 Overload resolution failed because no accessible 'New' can be called with these arguments:
'Public Sub New(start As System.Threading.ParameterizedThreadStart)': Method 'Public Sub AddNum(First As String, Second As String)' does not have a signature compatible with delegate 'Delegate Sub ParameterizedThreadStart(obj As Object)'.
'Public Sub New(start As System.Threading.ThreadStart)': Method 'Public Sub AddNum(First As String, Second As String)' does not have a signature compatible with delegate 'Delegate Sub ThreadStart()'. C:\Users\PRehm\Documents\Visual Studio 2008\Projects\ConsoleAppThread\ConsoleApplication1\LoadIntoSQL.vb
161 19 ConsoleAppThread
Mar 07, 2013 05:40 PM|Paulicus|LINK
alright i have gone very far now ... i got the thread to work ... but only one time. I keep getting an error on the AddnumThread.Start() ... is it because I aborted it? I di some calculation and if i can get this all to work it should increase processing
time by around 50%
I am trying to do something like:
Do While Place <= 40100
Prime = PrePrime
Power = PrePower
Place = Place + count
count = count + 1
Place = Place - 1
Mar 11, 2013 05:59 AM|Angie xu - MSFT|LINK
Thanks for your kind feedback.
Glad that you solved this issue by yourself, it is very appreciated to share your solution and experience with us. I come here to confirm and close this issue, if you have any issue in your future programming, welcome to post it in asp.net forums.
With kind regards