I like the kill switch but I really like to code a check for end job just before I go to read the data queue. I code a 30 second wait, not indefinite wait. The loop run until the data is greater than zero. Just outside of the loop I process the data read from the queue.

Basically I code the shutdown op code to set on LR then if LR, return. This will then gracefully end your program just before you read the data queue if the system is shutting down or the subsystem is ending.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].