Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

class to be held active (like showdialog)

Status
Not open for further replies.

HebieBug

Programmer
Jan 8, 2001
354
JP
A little bit of a bizarre one. App opens with sub main and calls a class called channel_manager which then starts threads up of the channels that I am working with. What currently happens is I call on channel_manager which starts up threads and then goes back to sub main and then closes the app(no real surprise). Does anyone know how I can initialize the channel_manager and then hold the app loaded? Very similar to that of having a sub main call a form as showdialog.
 
I'm sure I know the answer, I just forgot what it was.

It is the same then the one that is used to make it open a form and keep it open insteadof the showdialog option.

I think it was something in application. But I can't seem to find it in 2005.

Christiaan Baes
Belgium

"My new site" - Me
 
At the start of the threads use currentthread.background = false. That will force the app to stay alive until the thread ends, even if the primary thread ends.

Just make sure that all of your worker threads are set to not be background prior to the ending of the primary thread.

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top