Click here to Skip to main content
16,020,459 members
Home / Discussions / C#
   

C#

 
GeneralWe are inviting you to hotdotnet. Pin
Anonymous11-Feb-04 0:19
Anonymous11-Feb-04 0:19 
GeneralRe: We are inviting you to hotdotnet. Pin
Corinna John11-Feb-04 0:38
Corinna John11-Feb-04 0:38 
GeneralRe: We are inviting you to hotdotnet. Pin
Uwe Keim11-Feb-04 1:43
sitebuilderUwe Keim11-Feb-04 1:43 
GeneralBinding array to combobox Pin
Anonymous10-Feb-04 20:05
Anonymous10-Feb-04 20:05 
QuestionPanel Control covering my other controls... IDE BUG? Pin
gordingin10-Feb-04 16:15
gordingin10-Feb-04 16:15 
AnswerRe: Panel Control covering my other controls... IDE BUG? Pin
Heath Stewart11-Feb-04 3:14
protectorHeath Stewart11-Feb-04 3:14 
GeneralC# communication with events Pin
MusicAlly10-Feb-04 14:45
MusicAlly10-Feb-04 14:45 
GeneralRe: C# communication with events Pin
Kentamanos10-Feb-04 15:35
Kentamanos10-Feb-04 15:35 
EDIT: When you spoke of "events", I assumed your were referring to the classes in System.Threading. If this is not what you meant (if you meant events like delegate/event), then ignore what I say about "Events".

What type of inter-thread communication are your trying to do?

Events are not quite as powerful as a PostThreadMessage. PostThreadMessage allows you to send some information. Events are things you have one thread wait for (or poll for). You would have to create an Event for each type of message you wanted to wait (or poll) for.

You're not restricted to synchonization objects for communication. You can always have threads call functions on other classes. This gives the most flexibility (the parameters can be whatever you want). If you go that route, you'll need to make your methods thread-safe (using Mutex's or the lock keyword).

If you can, give me an example of what you're basically trying to do. Is it one main thread spawning many worker threads and waiting to hear back from each one when it has something to report? A small break down would help me give better advice.



I, for one, do not think the problem was that the band was down. I think that the problem may have been that there was a Stonehenge monument on the stage that was in danger of being crushed by a dwarf.

-David St. Hubbins
GeneralRe: C# communication with events Pin
MusicAlly10-Feb-04 16:54
MusicAlly10-Feb-04 16:54 
GeneralRe: C# communication with events Pin
Heath Stewart11-Feb-04 3:52
protectorHeath Stewart11-Feb-04 3:52 
GeneralCompiler Optimizations Pin
Andrew Shapira10-Feb-04 13:44
Andrew Shapira10-Feb-04 13:44 
GeneralVS-style colors Pin
Judah Gabriel Himango10-Feb-04 10:30
sponsorJudah Gabriel Himango10-Feb-04 10:30 
GeneralRe: VS-style colors Pin
Heath Stewart10-Feb-04 11:33
protectorHeath Stewart10-Feb-04 11:33 
GeneralRe: VS-style colors Pin
Uwe Keim11-Feb-04 1:47
sitebuilderUwe Keim11-Feb-04 1:47 
GeneralRe: VS-style colors Pin
Judah Gabriel Himango11-Feb-04 4:48
sponsorJudah Gabriel Himango11-Feb-04 4:48 
GeneralRe: VS-style colors Pin
Heath Stewart11-Feb-04 5:12
protectorHeath Stewart11-Feb-04 5:12 
GeneralProgrammatic mouse movement Pin
Darryl Borden10-Feb-04 10:29
Darryl Borden10-Feb-04 10:29 
GeneralRe: Programmatic mouse movement Pin
Judah Gabriel Himango10-Feb-04 10:33
sponsorJudah Gabriel Himango10-Feb-04 10:33 
GeneralDebugging into a reference Pin
gordingin10-Feb-04 10:23
gordingin10-Feb-04 10:23 
GeneralRe: Debugging into a reference Pin
Bill Dean10-Feb-04 10:29
Bill Dean10-Feb-04 10:29 
GeneralRe: Debugging into a reference Pin
gordingin10-Feb-04 10:34
gordingin10-Feb-04 10:34 
GeneralRe: Debugging into a reference Pin
Heath Stewart10-Feb-04 11:35
protectorHeath Stewart10-Feb-04 11:35 
GeneralRe: Debugging into a reference Pin
gordingin11-Feb-04 3:57
gordingin11-Feb-04 3:57 
Generalparallel port Pin
Member 87345210-Feb-04 7:51
Member 87345210-Feb-04 7:51 
GeneralRe: parallel port Pin
Marc Clifton10-Feb-04 8:39
mvaMarc Clifton10-Feb-04 8:39 

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.