Howdy!

I have a simple app that consumes a web service. The app sends and receives datasets from the web service (nothing to large). The iterations of the app where large so I decided to do some multi-threading. I moved the repeated code to a new class wrapper so I could set properties with the thread. My thread calls look like so:

Dim t1 as thread
Dim oScanClass As New ScanClass

t1 = New Thread(AddressOf oScanClass.midProcess)

oScanClass.threadIcount = icount
oScanClass.threadIP = tempIP
oScanClass.threadtdr = intdr
oScanClass.threadtdrc = intdrc
oScanClass.indnstable = dnstable.Copy

t1.Start()
nextIP = True

Now before I put in threads, the post back of datasets to the web service worked fine, but now when I try the same code within the thread, the app hangs, my cpu goes to 100% and just sits there. I have tried to wrap the webservice calls in another class...no luck.

Any ideas?

Thanks much!