Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
QuestionEvent handlers in multi-threaded apps Pin
brucemo15-Sep-05 13:32
brucemo15-Sep-05 13:32 
AnswerRe: Event handlers in multi-threaded apps Pin
brucemo15-Sep-05 13:57
brucemo15-Sep-05 13:57 
GeneralRe: Event handlers in multi-threaded apps Pin
brucemo15-Sep-05 14:35
brucemo15-Sep-05 14:35 
AnswerRe: Event handlers in multi-threaded apps Pin
Judah Gabriel Himango15-Sep-05 15:27
sponsorJudah Gabriel Himango15-Sep-05 15:27 
AnswerRe: Event handlers in multi-threaded apps Pin
leppie15-Sep-05 16:12
leppie15-Sep-05 16:12 
GeneralRe: Event handlers in multi-threaded apps Pin
brucemo15-Sep-05 17:07
brucemo15-Sep-05 17:07 
GeneralRe: Event handlers in multi-threaded apps Pin
Andy Brummer15-Sep-05 17:38
sitebuilderAndy Brummer15-Sep-05 17:38 
GeneralRe: Event handlers in multi-threaded apps Pin
brucemo15-Sep-05 21:29
brucemo15-Sep-05 21:29 
It appears that in that timer, you get called from some random thread, so if you are going to use that timer, you have to be smart about dealing with the consequences.

"Invoke" is sounding like it uses the modern equivalent of "PostMessage", which wouldn't be available unless you associate a form with it, I'm guessing. It doesn't sound like there is some magic call I can make that will get me back into the UI thread unless I go to the trouble of remembering where the UI thread is.

In case there is some confusion, I didn't start this thread to whine about .NET. I spent time trying to figure out how to solve my problem, and solved it, in a way that wasn't very elegant. The reason I wrote the post was to figure out if there was a obvious and elegant solution that I was missing.

It sounds like there isn't one, which is fine.

Thank you to everyone who replied.

bruce

QuestionA Specific Control Query Pin
udaan15-Sep-05 12:41
udaan15-Sep-05 12:41 
AnswerRe: A Specific Control Query Pin
Guffa15-Sep-05 13:46
Guffa15-Sep-05 13:46 
QuestionRichTextbox to send and receive data Pin
Ralf Hägenläuer15-Sep-05 10:09
Ralf Hägenläuer15-Sep-05 10:09 
QuestionDataSet Select statment Pin
zaboboa15-Sep-05 8:51
zaboboa15-Sep-05 8:51 
AnswerRe: DataSet Select statment Pin
Turtle Hand15-Sep-05 9:21
Turtle Hand15-Sep-05 9:21 
AnswerRe: DataSet Select statment Pin
Carl Mercier15-Sep-05 9:48
Carl Mercier15-Sep-05 9:48 
QuestionActiveReports +C# Pin
Agyeman15-Sep-05 8:33
Agyeman15-Sep-05 8:33 
Questionshort/easy question Pin
Lapje15-Sep-05 8:27
Lapje15-Sep-05 8:27 
AnswerRe: short/easy question Pin
Judah Gabriel Himango15-Sep-05 10:13
sponsorJudah Gabriel Himango15-Sep-05 10:13 
GeneralRe: short/easy question Pin
Lapje15-Sep-05 23:31
Lapje15-Sep-05 23:31 
GeneralRe: short/easy question Pin
Judah Gabriel Himango16-Sep-05 5:16
sponsorJudah Gabriel Himango16-Sep-05 5:16 
QuestionProgrammatically Deleting Data from a File Pin
JMitchem15-Sep-05 7:37
JMitchem15-Sep-05 7:37 
AnswerRe: Programmatically Deleting Data from a File Pin
Judah Gabriel Himango15-Sep-05 10:22
sponsorJudah Gabriel Himango15-Sep-05 10:22 
GeneralRe: Programmatically Deleting Data from a File Pin
JMitchem15-Sep-05 12:10
JMitchem15-Sep-05 12:10 
AnswerRe: Programmatically Deleting Data from a File Pin
Guffa15-Sep-05 11:44
Guffa15-Sep-05 11:44 
QuestionDesigner calls to class constructor several times! Pin
Lexa198315-Sep-05 7:03
Lexa198315-Sep-05 7:03 
AnswerRe: Designer calls to class constructor several times! Pin
Judah Gabriel Himango15-Sep-05 7:30
sponsorJudah Gabriel Himango15-Sep-05 7:30 

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.