Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #6052

Re: Using OS_DynamicArea to roll my own memory allow & free routines.

Path csiph.com!news.uzoreto.com!ecngs!feeder.ecngs.de!border1.nntp.ams1.giganews.com!nntp.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date Fri, 27 Mar 2020 07:46:05 -0500
Date Fri, 27 Mar 2020 12:47:07 GMT
From Matthew Phillips <spam2011m@yahoo.co.uk>
Newsgroups comp.sys.acorn.programmer
Subject Re: Using OS_DynamicArea to roll my own memory allow & free routines.
Message-ID <626dcd5758.Matthew@sinenomine.freeserve.co.uk> (permalink)
References <38b1b34d-d309-49ee-9116-6402b22444f5@googlegroups.com>
User-Agent Messenger-Pro/7.08 (MsgServe/7.07S) (RISC-OS/5.16) NewsHound/v1.50-32
Lines 25
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-RHWFx3DJk7Ti9MIIz9cZ/GzMU6NzPVswFc5B4Kl7tYymjugXyUbuoa3rzmOgaUSW98JaNgoNSrfceiO!uEEDjkcjnXMmjeHN48mWq+PUIVekRKI3bw6/ly13jnEq2XI604XEV1k3IsFivp5qLfBbb8eXVFSR!uBI3MoMtlCZ8J4fsU7WXEQ==
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2042
Xref csiph.com comp.sys.acorn.programmer:6052

Show key headers only | View raw


In message <38b1b34d-d309-49ee-9116-6402b22444f5@googlegroups.com>
 on 26 Mar 2020 usenet@garethlock.com wrote:

> Been trying to use malloc() and free() from C to create buffers for loading
> files... Once I've loaded and unsquashed one Sprite file, even if I return
> the file buffer (squashed data) back to the system, I seem unable to load
> more than one file before I overwrite the heap... 

What environment is your program running in.  Is it a Wimp application?  Is
it a command-line program running in a TaskWindow, or what?

If you are running in a TaskWindow, you might need to increase the Next slot
in the Wimp *before* you open the TaskWindow.

> Is this something I'm doing wrong, or a limitation of malloc()?

Definitely something you are doing wrong!

By the way, your subject line is "Using OS_DynamicArea to roll my own memory
allow & free routines", but you don't seem to have said anything about this
in your posting.  Is OS_DynamicArea relevant to your question?

-- 
Matthew Phillips
Durham

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Using OS_DynamicArea to roll my own memory allow & free routines. usenet@garethlock.com - 2020-03-26 12:56 -0700
  Re: Using OS_DynamicArea to roll my own memory allow & free routines. Matthew Phillips <spam2011m@yahoo.co.uk> - 2020-03-27 12:47 +0000
    Re: Using OS_DynamicArea to roll my own memory allow & free routines. usenet@garethlock.com - 2020-03-27 07:05 -0700
      Re: Using OS_DynamicArea to roll my own memory allow & free routines. Matthew Phillips <spam2011m@yahoo.co.uk> - 2020-03-27 17:34 +0000
        Re: Using OS_DynamicArea to roll my own memory allow & free routines. usenet@garethlock.com - 2020-03-27 12:30 -0700
          Re: Using OS_DynamicArea to roll my own memory allow & free routines. Matthew Phillips <spam2011m@yahoo.co.uk> - 2020-03-28 12:22 +0000
            Re: Using OS_DynamicArea to roll my own memory allow & free routines. usenet@garethlock.com - 2020-03-28 08:20 -0700
              Re: Using OS_DynamicArea to roll my own memory allow & free routines. usenet@garethlock.com - 2020-03-28 08:24 -0700
                Re: Using OS_DynamicArea to roll my own memory allow & free routines. usenet@garethlock.com - 2020-04-04 16:52 -0700

csiph-web