home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.programmer
- Path: sparky!uunet!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!cjs33278
- From: cjs33278@uxa.cso.uiuc.edu (Carl+Chris Samos)
- Subject: PMERR_HEAP_MAX_SIZE_REACHED
- Message-ID: <BxnF3y.BqB@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: University of Illinois at Urbana
- Date: Fri, 13 Nov 1992 09:45:33 GMT
- Lines: 30
-
- I am developing a very large OS/2 PM program that performs population
- modelling. In very simple terms, the program reads in observed census data,
- the user specifies what processes to turn on/off, what outputs to view, and
- how long of a projection to run (in years), and what interval should the
- output occur. The whole basis of the program is a spreadsheet. It is, in
- fact, a fully-functional spreadsheet capable of formulas, and really cool
- graphs, etc. So if the user runs a 10 year projection, she will get 10
- new spreadsheets, each one being the population for that year.
-
- So where the hell am I going with this? I was doing some testing today with
- very long projections, like 100 years, outputting a full set of outputs and
- graphs for each year (population by sex/region, deaths by sex/region,
- fertility by region, etc.). In other words I was allocating very large
- amounts of memory. For one of the projections I did, I requested over 1GB
- of RAM, and OS/2 handled it great. No apparent degredation in performance
- at all. Then I opened up another input file and ran another long projection
- on top of the first, and some time into the second projection, a
- WinCreateStdWindow() call failed. WinGetLastError() returned 0x1012
- which is PMERR_HEAP_MAX_SIZE_REACHED. Exactly what does this error mean, and
- how is it different from PMERR_HEAP_OUT_OF_MEMORY? Does it mean that I
- have reached my limit for how many segments I can allocate? Any advice on
- how I should handle this?
-
- I appreciate any help that you can offer. Thanks in advance,
-
- -Carl Samos
- cjs33278@uxa.cso.uicu.edu
- Merriam Lab
- UIUC
-
-