Mail Archives: djgpp/1997/09/14/14:53:07
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 -