[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Q] seg-fault in malloc?
From: |
Gary Polhill |
Subject: |
Re: [Q] seg-fault in malloc? |
Date: |
Wed, 29 Sep 1999 14:20:22 +0100 |
Gary Polhill wrote:
>
> Some general questions that might shed light on the matter:
>
> I use xmalloc (provided by the Swarm libraries) to allocate memory in
> some of my objects. Is this frowned upon? What should I be using?
>
> Is it OK to free a pointer allocated using xmalloc? (Is there some other
> function than free that I should use to do this?)
>
In general, it helps if, when allocating memory, you make sure you
allocate enough space for what you will be putting into it ;-)
Found the bug -- it was in my code, of course....
Sorry for clogging up your mailboxes.
Gary
--
Macaulay Land Use Research Institute, Craigiebuckler, Aberdeen. AB15 8QH
Tel: +44 (0) 1224 318611 Email: address@hidden
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.