Click here to Skip to main content
15,900,816 members
Home / Discussions / C#
   

C#

 
GeneralRe: Thread locking Pin
link_7911-Jun-04 13:48
link_7911-Jun-04 13:48 
GeneralRe: Thread locking Pin
Meysam Mahfouzi11-Jun-04 17:21
Meysam Mahfouzi11-Jun-04 17:21 
GeneralRe: Thread locking Pin
Xiangyang Liu 刘向阳12-Jun-04 3:01
Xiangyang Liu 刘向阳12-Jun-04 3:01 
GeneralRe: Thread locking Pin
link_7913-Jun-04 9:57
link_7913-Jun-04 9:57 
GeneralRe: Thread locking Pin
Meysam Mahfouzi11-Jun-04 17:13
Meysam Mahfouzi11-Jun-04 17:13 
GeneralPlaceHolder, TreeView, UserControl Pin
caheo11-Jun-04 9:22
caheo11-Jun-04 9:22 
GeneralRe: PlaceHolder, TreeView, UserControl Pin
Heath Stewart11-Jun-04 10:40
protectorHeath Stewart11-Jun-04 10:40 
Questioninefficient to create new delegate every time? Pin
vista2711-Jun-04 8:10
vista2711-Jun-04 8:10 
i had a question i've been wondering about... when using winforms, you have to access controls on the same thread that owns that control, so from another thread you have to create a new delegate and call it via Invoke(), which marshals the call to the owning thread and works fine. my concern is the creation of the new delegate every time you call Invoke(). if I am calling Invoke very often, then the new delegate you have to create and pass to it would be rather inefficient, right? because when i do call Invoke, in my case i do know which function i want to be called at compile time, and it seems more efficient to create the delegate once, and pass that same object to Invoke everytime it's called. however, when trying to create a delegate like so:

public void delegate handler();
handler delegate_handler = new handler(myFunc);

i get some compile time error about not being able to reference non-static stuff.

any comments or suggestions?

AnswerRe: inefficient to create new delegate every time? Pin
Heath Stewart11-Jun-04 8:48
protectorHeath Stewart11-Jun-04 8:48 
QuestionRichTextBox cannot handle huge amount of color-coded, varied font text? Pin
vista2711-Jun-04 7:47
vista2711-Jun-04 7:47 
AnswerRe: RichTextBox cannot handle huge amount of color-coded, varied font text? Pin
Aaron Eldreth11-Jun-04 8:32
Aaron Eldreth11-Jun-04 8:32 
GeneralRe: RichTextBox cannot handle huge amount of color-coded, varied font text? Pin
vista2711-Jun-04 9:16
vista2711-Jun-04 9:16 
GeneralRe: RichTextBox cannot handle huge amount of color-coded, varied font text? Pin
Aaron Eldreth11-Jun-04 12:18
Aaron Eldreth11-Jun-04 12:18 
GeneralUpdate to DB Failure Pin
MrJJKoolJ11-Jun-04 7:44
MrJJKoolJ11-Jun-04 7:44 
GeneralRe: Update to DB Failure Pin
Colin Angus Mackay11-Jun-04 8:10
Colin Angus Mackay11-Jun-04 8:10 
GeneralRe: Update to DB Failure Pin
MrJJKoolJ11-Jun-04 8:33
MrJJKoolJ11-Jun-04 8:33 
GeneralRe: Update to DB Failure Pin
Heath Stewart11-Jun-04 8:49
protectorHeath Stewart11-Jun-04 8:49 
GeneralRe: Update to DB Failure Pin
MrJJKoolJ11-Jun-04 9:11
MrJJKoolJ11-Jun-04 9:11 
GeneralRe: Update to DB Failure Pin
Heath Stewart11-Jun-04 10:38
protectorHeath Stewart11-Jun-04 10:38 
GeneralRe: Update to DB Failure Pin
MrJJKoolJ11-Jun-04 11:26
MrJJKoolJ11-Jun-04 11:26 
GeneralRe: Update to DB Failure Pin
Heath Stewart11-Jun-04 11:52
protectorHeath Stewart11-Jun-04 11:52 
GeneralRe: Update to DB Failure Pin
MrJJKoolJ11-Jun-04 12:19
MrJJKoolJ11-Jun-04 12:19 
GeneralImport a comma delimited text file to a access database Pin
kornstyle11-Jun-04 7:31
kornstyle11-Jun-04 7:31 
GeneralRe: Import a comma delimited text file to a access database Pin
Heath Stewart11-Jun-04 8:30
protectorHeath Stewart11-Jun-04 8:30 
GeneralDataGridTextBoxColumn won't word wrap Pin
holt11-Jun-04 6:05
holt11-Jun-04 6:05 

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.