Hi all
I’m calling a print function from an external library and when the printer is out of paper the print sub hangs and everything freezes for 2 minutes.
Is there any way to call a sub with a timeout, let’s say, 3 seconds and after that the sub call is aborted?
I’ve tried with a timer but as soon as the sub call hangs, everything hang.
thanks in advance.
I’m calling a print function from an external library and when the printer is out of paper the print sub hangs and everything freezes for 2 minutes.
Is there any way to call a sub with a timeout, let’s say, 3 seconds and after that the sub call is aborted?
I’ve tried with a timer but as soon as the sub call hangs, everything hang.
thanks in advance.