Table Of Contents

Warning about the Abort Button

Version:
    Last Modified: January 7, 2016

    The Abort button stops a program before it completes execution.

    Aborting a program that uses external resources, such as external hardware or file I/O operations, might leave the resources in an unknown state and cause the program to return errors the next time you access the resources. An alternative to using the Abort button is to enclose code that uses external resources in a While Loop with a Stop button. Using the Stop button instead of the Abort button cleans up external resources before stopping execution.

    spd-note-note
    Note  

    If you are aborting a program because the code uses a Flat Sequence Structure with many frames, consider using a State Machine design pattern instead.


    Recently Viewed Topics