Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #6052
| Date | 2020-03-27 12:47 +0000 |
|---|---|
| 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> |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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