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

C#

 
QuestionPosting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 4:30
Jim Crafton6-Jun-08 4:30 
AnswerRe: Posting event or invoking callbacks on main thread Pin
leppie6-Jun-08 4:40
leppie6-Jun-08 4:40 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 5:29
Jim Crafton6-Jun-08 5:29 
GeneralRe: Posting event or invoking callbacks on main thread Pin
leppie6-Jun-08 5:55
leppie6-Jun-08 5:55 
GeneralRe: Posting event or invoking callbacks on main thread Pin
leppie6-Jun-08 6:09
leppie6-Jun-08 6:09 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 9:12
Jim Crafton6-Jun-08 9:12 
AnswerRe: Posting event or invoking callbacks on main thread Pin
led mike6-Jun-08 4:45
led mike6-Jun-08 4:45 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 5:29
Jim Crafton6-Jun-08 5:29 
Actually other way around (sort of). The 3rd party triggers "events" via COM's Connection Point mechanism. .Net nicely wraps this up using delegates. However, due to the way the 3rd party control is written, these delegates are getting fired in a different thread than the main one, and it appears that I need be in the main thread to make calls on the 3rd part COM object.
So what I'm would like is a way to "post" a call back to the main thread. One way I had thought of was using an AutoResetEvent and making up my own "event" queue, but this seems like a lot of silly work to do something that I would expect the framework to support out of the box. There must be something I'm missing.

¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

Save an Orange - Use the VCF!
VCF Blog

GeneralRe: Posting event or invoking callbacks on main thread Pin
led mike6-Jun-08 6:06
led mike6-Jun-08 6:06 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 6:12
Jim Crafton6-Jun-08 6:12 
GeneralRe: Posting event or invoking callbacks on main thread Pin
led mike6-Jun-08 8:26
led mike6-Jun-08 8:26 
GeneralRe: Posting event or invoking callbacks on main thread Pin
Jim Crafton6-Jun-08 9:15
Jim Crafton6-Jun-08 9:15 
QuestionSerialize and deserialize with extra types Pin
Eric Burns6-Jun-08 3:46
Eric Burns6-Jun-08 3:46 
AnswerRe: Serialize and deserialize with extra types Pin
leppie6-Jun-08 4:42
leppie6-Jun-08 4:42 
QuestionHow to create notification icon (icon neer the windows clock ) in C# ? Pin
Yanshof6-Jun-08 3:21
Yanshof6-Jun-08 3:21 
AnswerRe: How to create notification icon (icon neer the windows clock ) in C# ? Pin
Gareth H6-Jun-08 3:28
Gareth H6-Jun-08 3:28 
GeneralRe: How to create notification icon (icon neer the windows clock ) in C# ? Pin
leppie6-Jun-08 4:43
leppie6-Jun-08 4:43 
GeneralRe: How to create notification icon (icon near the windows clock ) in C# ? Pin
Yanshof6-Jun-08 4:57
Yanshof6-Jun-08 4:57 
GeneralRe: How to create notification icon (icon near the windows clock ) in C# ? Pin
eggsovereasy6-Jun-08 7:14
eggsovereasy6-Jun-08 7:14 
Questionhow to convert this into c# Pin
prasadbuddhika6-Jun-08 2:50
prasadbuddhika6-Jun-08 2:50 
AnswerRe: how to convert this into c# Pin
Guffa6-Jun-08 2:54
Guffa6-Jun-08 2:54 
GeneralRe: how to convert this into c# Pin
Vasudevan Deepak Kumar6-Jun-08 3:36
Vasudevan Deepak Kumar6-Jun-08 3:36 
GeneralRe: how to convert this into c# Pin
Gareth H6-Jun-08 3:41
Gareth H6-Jun-08 3:41 
GeneralRe: how to convert this into c# Pin
Brady Kelly6-Jun-08 4:12
Brady Kelly6-Jun-08 4:12 
GeneralRe: how to convert this into c# Pin
CPallini6-Jun-08 3:49
mveCPallini6-Jun-08 3:49 

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.