Mail Archives: djgpp/1998/01/08/23:31:49
Bill Currie wrote:
> Yup, DPMI is failing your set limit call. Segments over 1M in lengt
> must be a multiple of 4k. This means you must use a segment limit of
> 2002944 (unless you want to go the other way). Anyway, wouldn't you
> want to go to 2097152 (2M exactly)?
I tried that, and it didn't work. I took that number and subtracted
one, and it worked then. I think the reason is that the function I
was calling set the limit to be "2097152" bytes from the base address,
but when setting the limit, you must subtract one because the base
address counts as one byte.
-David
toothpck AT xmission DOT com
http://www.xmission.com/~toothpck/index.html
- Raw text -