delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/03/15/18:33:11

From: "Yoda" <french DOT cat AT worldonline DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: memory allocating
Date: Wed, 15 Mar 2000 21:58:02 +0100
Organization: World Online France News server
Lines: 28
Message-ID: <8aot1m$93n$1@antares.worldonline.fr>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1000315105511 DOT 17230S-100000 AT is>
NNTP-Posting-Host: ppp-242.dialup-160.worldonline.fr
X-Trace: antares.worldonline.fr 953153398 9335 212.83.160.242 (15 Mar 2000 20:49:58 GMT)
X-Complaints-To: abuse AT worldonline DOT fr
NNTP-Posting-Date: 15 Mar 2000 20:49:58 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019