|
-
Feb 27th, 2007, 03:10 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] [02/03] Multithreading a Form
What I want to do is create a ThreadPool and assign that pool of thread to a specific form. I don’t know if this is possible, but any help would be greatly appreciated. Even if you can’t give me specifics, I point in the right direction would help.
-
Feb 27th, 2007, 04:47 PM
#2
Re: [02/03] Multithreading a Form
Like any other object, a ThreadPool is available anywhere you have a reference to it. If you create one within a form and assign it to a private variable then it's not accessible from outside the form. If you create one outside a form you can pass it in by assigning it to a property or passing it to a method argument. It is still accessible from outside the form though, as long as you have a reference to it outside the form. This is all true of any object, not just ThreadPools.
-
Feb 27th, 2007, 05:03 PM
#3
Thread Starter
Hyperactive Member
Re: [02/03] Multithreading a Form
 Originally Posted by jmcilhinney
Like any other object, a ThreadPool is available anywhere you have a reference to it. If you create one within a form and assign it to a private variable then it's not accessible from outside the form. If you create one outside a form you can pass it in by assigning it to a property or passing it to a method argument. It is still accessible from outside the form though, as long as you have a reference to it outside the form. This is all true of any object, not just ThreadPools.
Thanks for the info jmc...I feel really dumb for overlooking the obvious answer . Just 1 more quick question; how many threads are in a Threadpool?
-
Feb 27th, 2007, 05:20 PM
#4
Re: [02/03] Multithreading a Form
 Originally Posted by ProphetBeal
Thanks for the info jmc...I feel really dumb for overlooking the obvious answer  . Just 1 more quick question; how many threads are in a Threadpool?
I think you can find your answer here
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|