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
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)