VB6: How to abort a procedure that's taking too long
Posted on 2009-05-06
I am using a subroutine to shrink and antialias images. It works well in general, but on very large images it takes too long and in Windows Vista, this has caused freezing of the system.
I would like recommendations on the best way to abort a subroutine if it is taking longer than a specified number of seconds (I have experimented with using a timer and DoEvents command but so far I'm not satisfied).
Also, if anyone can recommend a very fast method of resizing with antialiasing, it would be very helpful.