Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 14-02-2009
Member
 
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!
Reply With Quote
  #2  
Old 14-02-2009
Member
 
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!
Reply With Quote
  #3  
Old 14-02-2009
Member
 
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!
Reply With Quote
  #4  
Old 14-02-2009
Member
 
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();
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "VB.NET threading question"
Thread Thread Starter Forum Replies Last Post
Threading in c# .net Athreya Software Development 3 12-01-2011 03:29 PM
What is Hyper threading Ameeryan Overclocking & Computer Modification 2 06-10-2009 04:03 PM
What is Threading in C# Programming ? HAKAN Software Development 2 31-03-2009 11:18 AM
What is threading in JAVA? Arsenio Software Development 3 02-03-2009 08:29 PM
Threading Unleashed Cool_Rahul Software Development 0 19-12-2008 01:39 PM


All times are GMT +5.5. The time now is 12:09 AM.