home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / atari / st / tech / 6541 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.4 KB

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