how to send a reference/addressof some procedure to a new thread?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • buu

    how to send a reference/addressof some procedure to a new thread?

    So, I have a new thread creating something like:

    dim myThread as new System.Threadin g.Thread(Addres sOf myProcedure)


    but, could I send an any kind of parameter instead of call to myProcedure???
    I don't know did I made myself clear, but I would like to have something
    like:


    public sub StartThread(byr ef myProc as Object)
    dim myThread as new System.Threadin g.Thread(Addres sOf myProc)
    mythread.Start
    end sub


Working...