The only way that I have found to do this, in any language, was to expose a
property that the event handler can write to, that the sending thread can
monitor.  The other solution that I can think of is to write a messaging
queue to pass the response on.



|---------+------------------------------------->
|         |           Sudha                     |
|         |           <[EMAIL PROTECTED]>     |
|         |           Sent by: "Moderated       |
|         |           discussion of advanced    |
|         |           .NET topics."             |
|         |           <[EMAIL PROTECTED]|
|         |           EVELOP.COM>               |
|         |                                     |
|         |                                     |
|         |           04/15/2002 01:25 PM       |
|         |           Please respond to         |
|         |           "Moderated discussion of  |
|         |           advanced .NET topics."    |
|         |                                     |
|---------+------------------------------------->
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                                              |
  |       To:       [EMAIL PROTECTED]                                
                                                              |
  |       cc:                                                                          
                                                              |
  |       Subject:  [ADVANCED-DOTNET] Threads and event handling                       
                                                              |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|




Hi All,
I have a thread which uses System.Timers.Timer to raise an
elapsedevent.When the event is raised the event handler is created on a new
thread.Is it possible to send any messages(or any other form of
communication) from the event handler back to the thread which raised the
event?

I would appreciate any help.

Thanks,
Sudha

You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.





IMPORTANT: E-mails from this company normally contain confidential material
for the sole use of the intended recipient. The use, distribution,
transmittal or re-transmittal by an unintended recipient of any
communication is prohibited without our express approval in writing or by
e-mail. Any use, distribution, transmittal or re-transmittal by persons who
are not intended recipients of this e-mail may be a violation of law and is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies. E-mail transmission cannot be guaranteed
to be secure or error-free. The sender therefore does not accept liability
for any errors or omissions in the contents of this transmission. All
e-mails sent to or from Strohl Systems and its affiliates are to be used
for
our business purposes only. E-mails sent from or to the company are subject

to review by the company.

You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced 
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to