|
-
September 9th, 2001, 11:57 AM
#1
How to abort a tight loop
I have a class module that processes image data. It may process hundreds or thousands of images per pass. Once I call the go method I want to be able to abort the process. I thought I could add a property called abort and check for it each loop. If true I would terminate the loop. I have a command button on the form that calls the class called abort. It just sets the classes abort property to true. I have also included a DoEvents in the loop so the button click gets processed. This works fine but the abort property never gets set. If I check a control on the form from the class for abort (say an abort check box) rather than looking at the abort propery it works.
Any ideas how to abort a class method reliably without external controls?
Thanks
Craig
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|