home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / cplus / 18606 < prev    next >
Encoding:
Text File  |  1992-12-31  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!linac!att!att!dptg!ulysses!ulysses.att.com!mwb
  3. From: mwb@ulysses.att.com (Michael W. Balk)
  4. Subject: Re: BORLAND C++ ; new int(1,000,000)
  5. Summary: 64k data limit per module in huge model
  6. Message-ID: <1992Dec31.185128.23173@ulysses.att.com>
  7. Date: Thu, 31 Dec 1992 18:51:28 GMT
  8. References: <C01upJ.FAx@fig.citib.com>
  9. Organization: AT&T Bell Laboratories, Murray Hill
  10. Lines: 25
  11.  
  12. In article <C01upJ.FAx@fig.citib.com>, ghica@fig.citib.com (Renato Ghica) writes:
  13. > Is it possible to allocate more than 640K (from extended or
  14. > expanded memory) on a DOS 5.0 system using a borland 3.1 C++ program?
  15. > Using the huge memory model, I'm trying to do the equivalent
  16. > of 
  17. >     new int(1,000,000);  
  18. >     without commas, of course.
  19. > I have not successed. (I know I can allocate 64k+ at the time).
  20.  
  21. According to the Borland 3.1 C++ Programmer's Guide, even though the
  22. total static data for the huge model can exceed 64k, it must be less
  23. than 64k within *each* model.  Given that statement, I don't see
  24. how new int(1000000) could ever work.
  25.  
  26.         Mike Balk
  27.         AT&T Bell Laboratories
  28.         Murray Hill, NJ 07974
  29.         mwb@ulysses.att.com
  30.  
  31.  
  32.  
  33.