At 20:22 -0800 2004.02.18, Scott Maxson wrote: >I'm running MacPerl 5.6.1r2 under OS 8.6, and having trouble downloading >large (2+ Mb) binary files using Net:FTP. I've given MacPerl 40 Mb of RAM >in the finder, but the file transfer stops at around 1.5 Meg and my mac >freezes up (no out-of-memory error, but a lockup of my system requiring a >hard reboot). If I increase MacPerl's memory allocation to 80 Mb, I can get >a bit further on the transfer, but something is clearly wrong here.
MacPerl has always had some problems handling memory problems, in large part because of Mac OS itself, which doesn't offer robust dynamic memory allocation. That's the root of the problem: though of course various solutions are possible, there's little desire to work on it at this time. The basic answer is to do exactly what you did. Another option is to use an external program to do the work, via Mac::Glue, such as with Interarchy or Fetch: my $ftp = new Mac::Glue 'Fetch'; $ftp->activate; $ftp->fetch($localdir, url => 'ftp://user:[EMAIL PROTECTED]/path/file'); The same code should work for both programs, as Interarchy borrowed from Fetch. To get this to work with Fetch, just drop Fetch onto the "gluemac" droplet included with MacPerl. (Password can be handle by Keychain too, so you don't necessarily need to put in here.) -- Chris Nandor [EMAIL PROTECTED] http://pudge.net/ Open Source Development Network [EMAIL PROTECTED] http://osdn.com/