Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] wait, events and ports - how they work together ?

From: sags::apollo::lv at: 24-Jul-2006 23:10

problem: I have serial port functions that finaly works well in non gui way. When I add layouts then the "wait serial-port" stops and waits on an event of view/layout. I solved some similar problem by clearing wait list and restoring it - but that does not help in this case. I can partialy solve the problem by replacing in my serial port functions wait serial-port with wait [ 1 serial-port ] But then I can get not right port in some cases. Are the only way to separate waiting on serial port and other port(s) is by checking am I getting the right port: forever [ port: wait [sms-port 0.5] ; half-second timeout if port = sms-port [ handle sms-port ... ] ] Loking forward for your replay & Thanks in advance Janeks