home *** CD-ROM | disk | FTP | other *** search
- rem **************************************************************************
- rem * *
- rem * This script causes a stack overflow by GOSUBing in an endless loop. *
- rem * *
- rem * Remember GOSUB pushs the current position on an internal stack so that *
- rem * RETURN can resume where GOSUB left off. The internal stack is 500 *
- rem * layers deep. *
- rem * *
- rem * This basically shows how an internal error is handled by PowerInstall. *
- rem * Internal errors are things like stack overflows or out of memory. *
- rem * PowerInstall shows a descriptive error window and exits gracefully. *
- rem * *
- rem * Compile by running PINST.EXE *
- rem * *
- rem **************************************************************************
-
- intvar win
- win = define_win 32 3 24 2 1 yes ' ' black white blue white
- win_puts win 1 1 " Welcome to PowerInstall v1.0 "
- curtain
-
- label loop
-
- show_win win Show window
- hide_win win Hide window
-
- gosub loop Don't do this.
-