Andreas Henschel wrote: > > Hi, > > I want to do some simple event handling and the > event_after_every/2 predicate seems to be exactly what I need. > Unfortunately, when I run the sample program: > > setup :- > set_event_handler(call_hi, hi/0), > % set up event `hi' to occur every 3.2 seconds > % and the hi event will trigger the execution of hi/0. > event_after_every(call_hi, 3.2). > > hi :- > writeln(hi). > > it just succeeds without any printouts. > Anyone who has experience with that? Events are only handled when Eclipse is actually executing code (and not when it is just waiting for input). For example: [eclipse 2]: setup, repeat, fail. hi hi hi ^C -- Joachim Schimpf / phone: +44 20 7594 8187 IC-Parc, Imperial College / mailto:J.Schimpf@ic.ac.uk London SW7 2AZ, UK / http://www.icparc.ic.ac.uk/eclipseReceived on Tue Nov 27 10:40:11 2001
This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:12 PM GMT GMT