<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3627" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=744491509-04112009>All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=744491509-04112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=744491509-04112009>I have a piece of
code that compute some solution. It also launches a separate thread which
is responsible for the visualisation.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=744491509-04112009>I can visualise the
solution and get it to update via a key from the keyboard. For that I use a
callback and AddObserver.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=744491509-04112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=744491509-04112009>What I would like to
do is to sent an event from the compute thread when a solution is ready to the
visualisation thread, so that the update occurs automatically. I spent quite a
bit of time looking at the documentation but I can't figure out how to do that.
So, how can I sent an event from a different thread and how canthis one be
picked up?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=744491509-04112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=744491509-04112009>Can anyone help
me?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=744491509-04112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=744491509-04112009>
Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=744491509-04112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=744491509-04112009>
-Pierre.</SPAN></FONT></DIV> <br>
********************************************************************<br>
This email and any attachments are confidential to the intended<br>
recipient and may also be privileged. If you are not the intended<br>
recipient please delete it from your system and notify the sender.<br>
You should not copy it or use it for any purpose nor disclose or<br>
distribute its contents to any other person.<br>
********************************************************************<br>
<br>
</body></HTML>