Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: textbox like IE Pin
V.6-Sep-10 20:25
professionalV.6-Sep-10 20:25 
QuestionDraw line in RichTextBox C# Pin
jojoba20116-Sep-10 4:55
jojoba20116-Sep-10 4:55 
AnswerRe: Draw line in RichTextBox C# Pin
Luc Pattyn6-Sep-10 5:07
sitebuilderLuc Pattyn6-Sep-10 5:07 
GeneralRe: Draw line in RichTextBox C# Pin
OriginalGriff6-Sep-10 5:33
mveOriginalGriff6-Sep-10 5:33 
GeneralRe: Draw line in RichTextBox C# Pin
Luc Pattyn6-Sep-10 5:49
sitebuilderLuc Pattyn6-Sep-10 5:49 
GeneralRe: Draw line in RichTextBox C# Pin
jojoba20116-Sep-10 5:56
jojoba20116-Sep-10 5:56 
GeneralRe: Draw line in RichTextBox C# Pin
Luc Pattyn6-Sep-10 6:06
sitebuilderLuc Pattyn6-Sep-10 6:06 
GeneralRe: Draw line in RichTextBox C# Pin
OriginalGriff6-Sep-10 5:56
mveOriginalGriff6-Sep-10 5:56 
QuestionRe: Draw line in RichTextBox C# Pin
jojoba20116-Sep-10 6:28
jojoba20116-Sep-10 6:28 
AnswerRe: Draw line in RichTextBox C# Pin
Luc Pattyn6-Sep-10 6:53
sitebuilderLuc Pattyn6-Sep-10 6:53 
GeneralRe: Draw line in RichTextBox C# Pin
DaveyM696-Sep-10 8:07
professionalDaveyM696-Sep-10 8:07 
AnswerRe: Draw line in RichTextBox C# Pin
Luc Pattyn6-Sep-10 8:19
sitebuilderLuc Pattyn6-Sep-10 8:19 
GeneralRe: Draw line in RichTextBox C# Pin
DaveyM696-Sep-10 8:27
professionalDaveyM696-Sep-10 8:27 
QuestionMulti-threading and function recursion with a form [modified] Pin
fdsfsa76f7sa66-Sep-10 3:11
fdsfsa76f7sa66-Sep-10 3:11 
AnswerRe: Mulit-threading and function recursion with a form Pin
Pete O'Hanlon6-Sep-10 3:23
mvePete O'Hanlon6-Sep-10 3:23 
GeneralRe: Mulit-threading and function recursion with a form Pin
fdsfsa76f7sa66-Sep-10 4:17
fdsfsa76f7sa66-Sep-10 4:17 
GeneralRe: Mulit-threading and function recursion with a form Pin
Kubajzz6-Sep-10 4:31
Kubajzz6-Sep-10 4:31 
GeneralRe: Mulit-threading and function recursion with a form Pin
fdsfsa76f7sa66-Sep-10 5:13
fdsfsa76f7sa66-Sep-10 5:13 
GeneralRe: Mulit-threading and function recursion with a form Pin
Pete O'Hanlon6-Sep-10 4:59
mvePete O'Hanlon6-Sep-10 4:59 
AnswerRe: Mulit-threading and function recursion with a form Pin
Cracked-Down6-Sep-10 8:21
Cracked-Down6-Sep-10 8:21 
AnswerDammit, stop blabbing and give him the code already... Pin
lepipele7-Sep-10 4:53
lepipele7-Sep-10 4:53 
GeneralRe: Dammit, stop blabbing and give him the code already... Pin
lepipele7-Sep-10 5:10
lepipele7-Sep-10 5:10 
GeneralRe: Dammit, stop blabbing and give him the code already... Pin
fdsfsa76f7sa69-Sep-10 1:27
fdsfsa76f7sa69-Sep-10 1:27 
GeneralRe: Dammit, stop blabbing and give him the code already... Pin
lepipele9-Sep-10 6:20
lepipele9-Sep-10 6:20 
QuestionRe: Dammit, stop blabbing and give him the code already... [modified] Pin
fdsfsa76f7sa69-Sep-10 22:37
fdsfsa76f7sa69-Sep-10 22:37 
Thanks, I think I understand ThreadPool a bit better now, but I still have some questions:

-Should I worry about the limit of 25 threads or will ThreadPool remove finished ones when the program queues 26th+ thread?
-Is there any safe way to abort/stop a thread from ThreadPool, such as with a flag within the function, so that it gets aborted at the right time?

I have 3 different functions to work on a separate thread, so I basically just need 3 different threads (not counting the STAThread and BeginInvoke threads). The functions can be launched any number of times though (but only one instance at the time), so the finished WorkItems should be removed if there's no way of reusing them.

Thanks in advance!

modified on Friday, September 10, 2010 4:59 AM

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.