try changine
sys_exit(NULL);
to be
sys_exit("");

If that doesnt help, put a beep(); into "quit_program"
to see if the button is even registering the click.
Can you see button image change from "stopclicked.jpg" to "stopnormal.jpg"
when the mouse hovers over it?


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial