Results 1 to 4 of 4

Thread: multithreading

  1. #1

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729

    multithreading

    how do i do the "standard" vb.net multithreading

    Code:
    dim mThread as new Thread(addressOf mFunction)
    mThread.Start()
    in C#?

  2. #2
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    You don't use the address of operator. Just a function that doesn't return a value, and takes no arguements.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Thread mThread = new Thread(mFunction);
    mThread.Start()

    Converting from VB.NET to C# is dead easy.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4

    Thread Starter
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    i did this lol:

    Code:
    			Thread ttThread = new Thread(new ThreadStart(startDownloadThread));
    			ttThread.Start();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width