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