in reply to break out of enless loop does not release memory
You don't seem to be in a hurry. Why not just restart the program? This script shows the concept:
You may have to add any extra parameters.use appiqcli; my @eventlist = appiqlist(-event -all); sleep(10); exec $^X, $0;
Note: $^X is the full path to the current perl interpreter, $0 is the name of the script. And yes, it works on Win32.
You can watch out for a keypress in that sleeping period, and not do the exec statement if you see one. Or, just have the user press ctrl-C.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: break out of enless loop does not release memory
by Limbic~Region (Chancellor) on Feb 21, 2007 at 14:11 UTC | |
|
Re^2: break out of enless loop does not release memory
by Anonymous Monk on Feb 21, 2007 at 12:59 UTC | |
by cdarke (Prior) on Feb 21, 2007 at 17:22 UTC |