Mail Archives: djgpp/2000/02/14/00:25:52
> I'm currently playing around with the Quake source code.
Warning 1. Quake was delivered with V2.00beta3
> However, sometimes the program crashes due to a return value of sbrk(0)
> of 4292927536 (I'm not sure if this value changes between
> crashes/reboots/etc).
This will only happen if you are running under Windows, and your memory
is fragmented, and it returns a block below the current arena. Since
the original Quake shipped with unixy sbrk() this never happened.
You can probably get the right behavior by setting some crt0 flags.
- Raw text -