www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/14/14:53:07

Date: Sun, 14 Sep 1997 11:42:21 -0700 (PDT)
Message-Id: <199709141842.LAA12530@adit.ap.net>
Mime-Version: 1.0
To: ludvig AT club-internet DOT fr, djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Linked lists with DJGPP wasn't the 'problem'...

At 12:36  9/13/1997 +0200, ludvig wrote:
>Thanks for taking you time to reply.
>But:) my question wasn't actually How to write a linked list but if
>there might be problems with the memory handler in protected mode when
>you want to allocate many(Many many) structs or whatever. With realmode
>it's easy, you just gets a lot of pointers, but protected mode??
Nope, it works the same. You still get lots of pointers. If you allocate
tons and tons, and your struct size is slightly more than a power of 2, you
*might* run out of memory due to the memory wastage of DJGPP's fast malloc
routine. Otherwise, don't worry.

Nate Eldredge
eldredge AT ap DOT net



up_flags = _CRT0_FLAG_NULLOK;
to one of your source files.
Not that I recommend it... you should try debugging your code instead.
>  My
>friend wrote a 3D engine for Watcom that DOS4G/W handled fine.  Then he
>gave it to me and CWSDPMI spewed out Page Faults and Sig Segs up the
>wazoo...  I re-stubbed it with PMODE/DJ and all is (not really) well...
>
>It seems DOS4G/W, PMODE/DJ and the Win95 DPMI are really lazy... :)
Quite likely. Null pointer protection is just a consequence of being able to
unmap specific pages of memory, which seems like an easy thing to do...

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


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