I wrote a MacPerl script to process a dragged group of files and
folders; it works fine, without any apparent bugs -- unless the
number of items dragged to the droplet exceeds about 180. The script
just utterly fails to run after launching MacPerl; no error messages,
nothing. Running with debug flags, compiler warnings, etc. give no
additional info. Using a runtime, a droplet, an alias to the script
-- no difference.
The weird thing is, it doesn't do this every time. Sometimes it
works perfectly, other times it doesn't even print the diagnostics I
put at the beginning of the program. I haven't been able to figure
out the difference; usually I have the same set of apps open all the
time, with similar free memory. Here's the first part of the program:
print "Starting program....\n";
$localdir = dirname($ARGV[0]);
print ("now in ", $localdir, "\n");
@drag = @ARGV;
When it fails, it doesn't even print "Starting program..." It just
launches MacPerl, or the runtime, or whatever, and then sits there.
Fully responsive, but it doesn't run the script. Selecting a smaller
group of files (say 160) and dragging them to the script icon results
in the script working perfectly. Dragging a 180+ file group to the
icon does ... nothing except bring it to the front.
I've increased MacPerl's memory to absurd amounts (30MB) and quit all
other apps, with no difference. Tried MacPerl 5.2.0r4 and 5.6.1;
same result. My system:
PowerMac G3/333 (beige), 256MB RAM, System 9.1 (the script resides
on a HFS+ volume, and the files on a HFS volume).
Anyone with a suggestion?
--
| Greg Dunn | I don't have low self-esteem. |
| [EMAIL PROTECTED] | It's a mistake. I have low |
| The Sultan of Slack(tm) | esteem for everyone else. |
| http://www.indy.net/~gregdunn/ | Daria |