home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / misc / 39776 < prev    next >
Encoding:
Text File  |  1992-12-17  |  1.6 KB  |  40 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!destroyer!news.iastate.edu!jws
  3. From: jws@iastate.edu (James William Shoemaker)
  4. Subject: Re: 1Meg limit in WinOS/2?
  5. Message-ID: <BzF1zy.JB8@news.iastate.edu>
  6. Sender: news@news.iastate.edu (USENET News System)
  7. Organization: Iowa State University, Ames, IA
  8. References: <20071@ksr.com> <1992Dec15.015233.15485@njitgw.njit.edu>
  9. Distribution: na
  10. Date: Thu, 17 Dec 1992 18:28:45 GMT
  11. Lines: 27
  12.  
  13.  
  14. >>Since WinOS/2 is effectively Standard Mode Windows, does
  15. >>that mean that the biggest contiguous memory block that can
  16. >>be allocated is 1Meg?
  17.  
  18. >Yes, if you use HUGE model.  If you use LARGE model, then the buggest
  19. >block is 64K.  I think Windows provides some memory management
  20. >functions that get around this, though.  But those functions might
  21. >only be available in ENHANCED mode.
  22.  
  23.     As far as I know there is no way for a 16-bit Program to allocate
  24. a memory region larger than 1M in Standard Mode Windows.
  25.  
  26.     One Caviat there is that WinOS2 is not Completely Standard mode Windows
  27. It is Standard Mode Windows running on a DPMI server.  So a 32-Bit Windows
  28. program that uses DPMI to get into and out of 32-bit mode runs great and can
  29. allocate large buffers.  I know this because the 32-Bit Windows extender from
  30. Watcom Does this and the programs generated by it run just fine, though you
  31. have to give the Win-OS2 session they are in >64 Meg Ram for some reason.
  32.  
  33.     Needless to say any program I write under windows that allocates Large
  34. buffers will be written using Watcom for the ability to run on the most
  35. platforms possible.  I don't know if this trick works under NT, I haven't had
  36. a chance to try it yet.
  37.  
  38.  
  39.                 JWS
  40.