Mail Archives: djgpp/2000/03/15/18:33:11
Eli Zaretskii wrote in message ...
>
>On Wed, 15 Mar 2000, Yoda wrote:
>
>> I'd like to allocate a quite big amount of memory. I am quite new on
djgpp.
>> I managed to allocate memory to do a double scree buffer , but i cannot
>> alocate memory to store vertex of a 3d object. Until now , i used mallocs
to
>> do that but it is limited . The objects that i load cannot have more then
>> 'bout 1000 faces =((.
>
>Details, please. First, please explain why can't you use malloc.
>What's ``limited'' about it?
When the amout of memory is too big , malloc returns a null pointer.
I'd like to know if there is other ways to allocate memory. Maybe with dpmi
functions ? I couldnt find doc on it.
I know there r functions called like _dpmi_memory_allocate . I also saw
allocate ldt ... But i dunno how to use them. I used to program c with
borland Turboc , there was only malloc and xms. I couldnt load big
objects...
I hope someone can help me ?
Cedric
- Raw text -