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

[MacPerl] Out of Memory Crash



Hello everyone!  :-)

I ran into an interesting problem this past weekend.  I
wrote a small program and, in the course of things, used
the wrong variable in one place.  This had an interesting
side effect.  I got the following:

Out of memory!
Out of memory!
Out of memory!

And then the system crashed.

Now, to be totally truthful - When I ran the program from
BBEdit using the really nice routines which let you execute
a program from within BBEdit - MacPerl just gave this error
and exited.  But the program was also saved as a Runtime
version.  That was the one which crashed the system.

Program set-up:

1. Opened an NNTP connection to read articles.
2. Set up an array to hold article numbers.
3. Read through articles.
4. Accidentally set the array to the article number
   (something like 166673).
5. Messages and system crash.

The program is to look for articles which my wife wants to
read.  :-)

Also, the problem is fixed.  So this is more of a "Why'd
this happen?"  And I realize that it is probably that the
runtime version does not have all of the trappings of
MacPerl itself (or maybe it is just not going through the
same error handling routines or some such).  But I thought
I should let MN know about this.  :-)

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