home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1352 < prev    next >
Encoding:
Internet Message Format  |  1992-08-16  |  1.6 KB

  1. Path: sparky!uunet!gumby!wupost!usc!chaph.usc.edu!news
  2. From: dlee@girtab.usc.edu (David J. Lee)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: How much memory is needed to run a program?
  5. Date: 16 Aug 1992 10:07:46 -0700
  6. Organization: The Island of Misfit Toys
  7. Lines: 27
  8. Message-ID: <l8t2r2INNm6m@girtab.usc.edu>
  9. References: <1992Aug11.180831.5010@fics.uucp> <1992Aug12.092613.4229W@lumina.edb.tih.no>
  10. NNTP-Posting-Host: girtab.usc.edu
  11.  
  12. In article <1992Aug11.180831.5010@fics.uucp>, ekl@fics.uucp writes:
  13. ->I have a program that runs as a beauty under Windows 3.1, but
  14. ->refuses to start under Windows 3.0, with windows giving the
  15. ->message "Insufficient memory to run this application; close 
  16. ->one or more windows applications and try again". 
  17. ->[...]
  18. ->Help About claims that there is 400+ K free memory, and 72%
  19. ->free resources. Which roof am I hitting?
  20.  
  21. I once had this problem.  It can mean that you are out of memory below
  22. 640K.  Windows needs some of this memory per app/dll.  If you are out
  23. you simply get the "Insufficient memory" message.  There is no other
  24. indication anywhere about what the real problem is.
  25.  
  26. If you specify on the compile line that data should be put in its own
  27. data segment per source file, Windows will load that data fixed and
  28. non-discardable in the lower 640K of physical memory.  Windows 3.1 is
  29. a little smarter and seems to only load _some_ of it low.  I'm not
  30. sure why it does this.  Anyway, if this is your problem you have to
  31. write a peice of assembly code that unlocks and moves each of your
  32. datasegments when your app starts.  This is the "official" fix from
  33. Microsoft Support.
  34.  
  35. Then again, this may not be your problem at all.
  36.  
  37. .
  38.  
  39.