Results 1 to 4 of 4

Thread: VB.NET threading question

  1. #1
    Join Date
    Jan 2009
    Posts
    22

    VB.NET threading question

    Hello!

    I an building Mongoose web server in an application with forms & modules.

    I am calling the main() function from the module on form load event & it loads the browser correct but from application my form do not load.

    Is this because my application is single threaded?

    Please help me with this!

  2. #2
    Join Date
    Jan 2009
    Posts
    38

    Re: VB.NET threading question

    Please read this!
    http://msdn.microsoft.com/en-us/library/3s8ys666.aspx
    Hope this helps!

  3. #3
    Join Date
    May 2008
    Posts
    40

    Re: VB.NET threading question

    Create a Thread object with the method in the module as the entry point, then Start it:

    Code:
       1.      Dim t As New Thread(AddressOf Main)
       2.       
       3.      t.Start()
    I wont call the method main since it is an entry point for an application!

  4. #4
    Join Date
    Jan 2009
    Posts
    22

    Re: VB.NET threading question

    Thanks for the help now it works properly!

    But I hope I have to stop it using abort method right?

    t.abort();

Similar Threads

  1. Threading in c# .net
    By Athreya in forum Software Development
    Replies: 3
    Last Post: 12-01-2011, 03:29 PM
  2. What is Hyper threading
    By Ameeryan in forum Overclocking & Computer Modification
    Replies: 2
    Last Post: 06-10-2009, 04:03 PM
  3. What is Threading in C# Programming ?
    By HAKAN in forum Software Development
    Replies: 2
    Last Post: 31-03-2009, 11:18 AM
  4. What is threading in JAVA?
    By Arsenio in forum Software Development
    Replies: 3
    Last Post: 02-03-2009, 08:29 PM
  5. Threading Unleashed
    By Cool_Rahul in forum Software Development
    Replies: 0
    Last Post: 19-12-2008, 01:39 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,594,669.22202 seconds with 17 queries