I'm having a problem using fl_add_timeout. I have a function the changes
the state of a process.
I initialize the call using psid[port] =
fl_add_timeout(seconds,cycle,pprt); /* pprt is a pointer to int port */
I have cycle() print out the tid and the value of psid[port]
then cycle sets up another timeout to its self psid[port] =
fl_add_timeout(seconds,cycle,pprt).
On the first timeout things look OK. tid == psid[port], on the second
timeout (the one set up inside cycle)
the program exits. I noticed that tid == psid[port] -1Tid is the timeout
id returned by the fl_add_timeout
call. I also check the value of port and it was what was expected.
Anyone know what I'm doing wrong?
Thanks
Joel
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/