home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4712 < prev    next >
Encoding:
Text File  |  1993-01-07  |  2.6 KB  |  65 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. From: chris@chrism.demon.co.uk (Chris Marriott)
  3. Path: sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
  4. Subject: Re: Should I use large memory model anyway? 
  5. Distribution: world
  6. References: <1993Jan6.193801.27741@neptune.inf.ethz.ch>
  7. Organization: None
  8. Reply-To: chris@chrism.demon.co.uk
  9. X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
  10. Lines: 50
  11. Date: Thu, 7 Jan 1993 19:18:09 +0000
  12. Message-ID: <726434289snz@chrism.demon.co.uk>
  13. Sender: usenet@demon.co.uk
  14.  
  15. In article <1993Jan6.193801.27741@neptune.inf.ethz.ch> skimmel@iiic.ethz.ch writes:
  16.  
  17. >I have a question about the large memory model. 
  18. >
  19. >MS and others (Petzold) warn to use the large memory model. On the other
  20. >hand I read that using the large memory model will make your
  21. >code more easily portable to Windows NT.
  22. >
  23. >What I heard so far about the disadvantages of the large memory model
  24. >is not enough to stop me to try it. 
  25. >
  26. >We do not need multiple instances of our application and do not 
  27. >have to support Windows 3.0. (not even Standard Modus)
  28. >
  29. >But on the other hand we want at least part of our application (the
  30. >non-GUI part) to be easily portable to other platforms, and the 
  31. >whole application to be easily portable to Windows NT.
  32. >
  33. >Have I missed certain important considerations about the large memory 
  34. >model? Do you know of any literature that is more encouraging about
  35. >using the large memory model and explains more about it?
  36. >
  37. >Thank you
  38. >                Stefan
  39. >
  40. >
  41. >Stefan Kimmel                 | skimmel@inf.ethz.ch
  42. >Siemens-Albis I/49            | S=kimmel;OU1=eates;P=siemenszh;A=arcom;C=ch
  43. >Albisriederstr. 245
  44. >CH 8047 Zuerich Switzerland   | Tel:  +41 1 495 49 35
  45. >
  46. >
  47.  
  48. If you're using either Microsoft C++ v7 or Borland C++ v3.1 there's no
  49. reason at all why you shouldn't use large model any more.  The reason the
  50. warnings were originally given related to Real Mode Windows, and the fact
  51. that the older C compilers generated FAR data segments in Large model,
  52. which made the application single instance.
  53.  
  54. Use one of the modern compilers and you'll be quite safe.  Your app will
  55. still run multiple instance, and you'll be able to allocate memory using
  56. the standard C "malloc" routine.
  57. -- 
  58. --------------------------------------------------------------------------
  59. | Chris Marriott                           | chris@chrism.demon.co.uk    |
  60. | Warrington, UK                           | BIX: cmarriott              |
  61. | (Still awaiting inspiration              | CIX: cmarriott              |
  62. |  for a witty .sig .... )                 | CompuServe: 100113,1140     |
  63. --------------------------------------------------------------------------
  64.  
  65.