Mail Archives: djgpp/1999/09/20/13:24:52
Eli Zaretskii wrote:
> > _go32_dpmi_allocate_dos_memory() calls work just fine, but in one
> > function, it returns me a non-zero (an error) and allocates nothing.
> How much memory, overall, did you allocate? Is it possible that you
> have used up all the conventional memory?
I tried to allocate about 32 bytes. However, the error disappeared when I
started using a large (about 20 kB) memory block for all the cases I
needed conventional memory. Is there a limit for how many
_go32_dpmi_seginfo blocks I may use? (That would be pretty lame)
> What, if any, are the differences between the code in functions that
> work and in the one that doesn't? Do you ask for the same size, for
> example?
No differences. Even the size was the same.
> It is also possible that, due to some unrelated bug, your code
> overwrites the _go32_dpmi_seginfo structure, so the function gets it
> garbled.
No, because I call the function right after I set the required size. And I
traced it a zillion times, and it almost always failed.
Anyone know the reason for this?
--
---------------------------------------------
Wolfram / Coder / Draconus Entertainment Inc.
---------------------------------------------
- Raw text -