home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!rutgers!network.ucsd.edu!munnari.oz.au!cs.mu.OZ.AU!munta.cs.mu.OZ.AU!fjh
- From: fjh@munta.cs.mu.OZ.AU (Fergus James HENDERSON)
- Newsgroups: comp.lang.c++
- Subject: Re: BORLAND C++ ; new int(1,000,000)
- Message-ID: <9300302.976@mulga.cs.mu.OZ.AU>
- Date: 2 Jan 93 15:40:18 GMT
- References: <C01upJ.FAx@fig.citib.com> <1992Dec31.185128.23173@ulysses.att.com>
- Sender: news@cs.mu.OZ.AU
- Organization: Computer Science, University of Melbourne, Australia
- Lines: 31
-
- mwb@ulysses.att.com (Michael W. Balk) writes:
-
- >ghica@fig.citib.com (Renato Ghica) writes:
- >>
- >> Is it possible to allocate more than 640K (from extended or
- >> expanded memory) on a DOS 5.0 system using a borland 3.1 C++ program?
- >>
- >> Using the huge memory model, I'm trying to do the equivalent of
- >> new int(1,000,000);
- >> I have not successed. (I know I can allocate 64k+ at the time).
- >
- >According to the Borland 3.1 C++ Programmer's Guide, even though the
- >total static data for the huge model can exceed 64k, it must be less
- >than 64k within *each* model.
-
- I think that it says each _module_, not each model.
- (That is, in each source file.)
-
- >Given that statement, I don't see
- >how new int(1000000) could ever work.
-
- new int(1000000) is *dynamic* allocation, so the limitations on *static*
- data don't apply. It is possible to allocate objects >64k, I think, but
- not >640k. (Get a _real_ operating system, like Linux, not this horrible
- MSDOS :-)
-
- --
- Fergus Henderson fjh@munta.cs.mu.OZ.AU
- This .signature virus is a self-referential statement that is true - but
- you will only be able to consistently believe it if you copy it to your own
- .signature file!
-