Date : Mon, 18 Jul 1994 09:39:50 GMT
From : rtr@... \(\).bbc.co.uk (Richard Russell \(KW 36684\))
Subject: Re: Another little progress update...
Chris,
> couple of problems - the major one being how the hell I am supposed to
> get 65536 bytes of memory (a whole segment) to myself on a PC. Does
> anyone have a sure-fire way of getting 65536 bytes of contiguous memory
> on a PC? I'm posting to newsgroups about this too so don't worry if you
> don't!
As you're *almost* certain to get 65536 bytes of contiguous memory on a
sensibly-configured PC, I would suggest your program simply tests on entry
that it has (by looking in the PSP) and, in the unlikely event that it hasn't,
exit with a helpful error message ("Sorry, insufficient memory available").
There are other, more 'sophisticated', methods to allocate memory but I have
always found the above to be adequate.
Richard.