Re: Memoriesssssssss (ok, just Memory)

From: blah (merren@MINDCRYME.COM)
Date: 05/05/98


Ok, I feel stupid. I forgot to check my syslog, heh...

malloc failure: Cannot allocate memory

Hrm...

I assume this means the machine just ran outta free RAM, right?

Melen
Allanthya.org 4000

On Tue, 5 May 1998, Daniel Koepke wrote:

> On Tue, 5 May 1998, blah wrote:
>
> ->#define CREATE(result, type, number)  do {\
> ->        if (!((result) = (type *) calloc ((number), sizeof(type))))\
> ->                { perror("malloc failure"); abort(); } } while(0)
> ->
> ->So if I'm understanding correctly, it tried to allocate some memory,
> ->couldn't, and crashed (first, is this assumption correct???).
>
> If it's crashing in CREATE, then when it crashes it should send out a
> line, "malloc failure:" followed by a brief description of what went
> wrong.  That line should help you.
>
> -dak
>
>
>      +------------------------------------------------------------+
>      | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>      | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>      +------------------------------------------------------------+
>


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST