[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Too many arguments?



I  wrote:

>I'm running into a situation where drag-and-drop of file
>arguments onto a MacPerl droplet fails silently.  If I
>drag and drop 25 files at a time, say, it works.  @ARGV
>contains the expected list of file paths.  If I drag 55
>at a time, it fails...and I don't mean my program fails,
>but that even a simple
>
>   print "hello, world!\n";
>
>fails to print anything.  I assume MacOS has some (apparently
>low) number of bytes allocated to holding the list of files,
>and I'm exceeding it.  Is there anything I can do about this?
>Probably a built-in constant, eh?  I would like to understand
>the mechanism, however.


Peter Hartmann (hartmann@mbox.kyoto-inet.or.jp) wrote:

>I could solve this problem by increasing the memory partition of the applet
>in the Finder: Higlight the applet in the Finder, choose Information from
>the File menu and try 150KB in both fields. I just dropped my Netscape
>cache (425 files) on a 300KB-"print "hello, world!\n";"-droplet and it
>worked.


Well color me stupid!  It works, and I feel pretty silly for
not thinking of it.  Maybe not as silly as the guy who trained
his clients out of dropping more than 25 files as a result, but
silly nonetheless.  Thanks for the help!


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch