Subject: Re: I get a core when I malloc 1.5 Megs of memory, why?
To: John Maier <johnam@datastorm.com>
From: Jon Armstrong <jma@vulcan.lpa.com>
List: netbsd-help
Date: 09/03/1996 17:57:15
> I need to allocate 1,545,000 bytes of memory for an array of structures.

> I have tried using calloc and malloc and when I run the final app,
> it core dumps.

Hi again John.  *smile*

I assume this is the same allocation that was/is giving you trouble
when trying to free() the memory.  I indicated that I thought you
really wanted a pointer to an array of structures, but you actually
declared an array of pointers.

I bet these problems are quite related.  Check me other response for
more details.  Let me know if you need clarification.

Note: I can be found on irc (efnet) quite often (#C - Xgc or [scud]).

---------------------------------------------------------------------
 Reply to: armstron@eznet.net - Jon M. Armstrong - LPA Software Inc.
---------------------------------------------------------------------