home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sun4nl!tuegate.tue.nl!rw8.urc.tue.nl!wmtwen
- From: wmtwen@rw8.urc.tue.nl (Erlend Nagel)
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: Malloc (Was: Sending objc_draw to a buffer)
- Message-ID: <wmtwen.726497985@rw8.urc.tue.nl>
- Date: 8 Jan 93 12:59:45 GMT
- References: <2b3de6cf@p15.f202.n281.z2.fidonet> <1993Jan3.035343.15539@netcom.com> <1993Jan4.203951.6091@dcs.warwick.ac.uk> <1993Jan6.224937.10888@netcom.com>
- Sender: root@tuegate.tue.nl
- Reply-To: wmtwen@urc.tue.nl
- Lines: 18
-
- Well after reading quite of lot of posts on what to use Malloc or
- malloc en Mfree or mfree I am a bit confused...
- I have just begun programming under GEM and am trying to write a decent
- wordprocessor (Oh my god... not another wordprocessor...). Now I need
- stacks of 32K each (just an arbitrary number I chose, so that the
- blocks would be not too small but would not use up too much memory
- either). These stacks will be used until so much has been deleted that
- the last one can be freed or until the text has been closed.
- At the moment I decided to use Malloc and Mfree, because these are OS
- primitives and I thought that my programs would at least remain
- compatible with new OS releases that have different memory allocation.
- And also it seems to me that using Malloc saves a bit of memory because
- the malloc function does not have to be linked.
-
- Question:
- Did I do wrong?
-
- Erlend.
-