Hi al

Could someone tell me what they think of this- I want to have two threads running; one on the main application thread and one as a background worker thread. If I spawn the worker thread from the main application thread as shown below, where is the best place to put the code for the main application thread? I could fire it from a timer I guess but I want this code to run in a constant loop, and to start immediately. It needs no interaction from the user. Can I put the code at the bottom of the New() method, after spawning the worker, as shown below or will this cause problems

Thanks for any hel

And


Public Sub New(

MyBase.New(

Tr
'This call is required by the Windows Form Designer
InitializeComponent(
Catch ex As Exceptio
Sto
End Tr

Me.thr_one = New Thread(New ThreadStart(AddressOf Me.Thread_one)

closeRequested = Fals

controlInvoker = New ControlInvoker(Me

Me.thr_one.Priority = ThreadPriority.AboveNorma

Me.thr_one.Start(

Me.threadRunning = Tru

While Not (end_requested

' <<<<<<<< rest of code, to process in a loop >>>>>>>>>

Loo

End Sub