home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / programm / 6397 < prev    next >
Encoding:
Text File  |  1992-11-13  |  2.0 KB  |  41 lines

  1. Newsgroups: comp.os.os2.programmer
  2. 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
  3. From: cjs33278@uxa.cso.uiuc.edu (Carl+Chris Samos)
  4. Subject: PMERR_HEAP_MAX_SIZE_REACHED
  5. Message-ID: <BxnF3y.BqB@news.cso.uiuc.edu>
  6. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  7. Organization: University of Illinois at Urbana
  8. Date: Fri, 13 Nov 1992 09:45:33 GMT
  9. Lines: 30
  10.  
  11. I am developing a very large OS/2 PM program that performs population
  12. modelling.  In very simple terms, the program reads in observed census data,
  13. the user specifies what processes to turn on/off, what outputs to view, and
  14. how long of a projection to run (in years), and what interval should the
  15. output occur.  The whole basis of the program is a spreadsheet.  It is, in
  16. fact, a fully-functional spreadsheet capable of formulas, and really cool
  17. graphs, etc.  So if the user runs a 10 year projection, she will get 10
  18. new spreadsheets, each one being the population for that year.
  19.  
  20. So where the hell am I going with this?  I was doing some testing today with
  21. very long projections, like 100 years, outputting a full set of outputs and
  22. graphs for each year (population by sex/region, deaths by sex/region,
  23. fertility by region, etc.).  In other words I was allocating very large
  24. amounts of memory. For one of the projections I did, I requested over 1GB
  25. of RAM, and OS/2 handled it great.  No apparent degredation in performance
  26. at all.  Then I opened up another input file and ran another long projection
  27. on top of the first, and some time into the second projection, a
  28. WinCreateStdWindow() call failed.  WinGetLastError() returned 0x1012
  29. which is PMERR_HEAP_MAX_SIZE_REACHED.  Exactly what does this error mean, and
  30. how is it different from PMERR_HEAP_OUT_OF_MEMORY?  Does it mean that I 
  31. have reached my limit for how many segments I can allocate?  Any advice on
  32. how I should handle this?  
  33.  
  34. I appreciate any help that you can offer.  Thanks in advance,
  35.  
  36. -Carl Samos
  37.  cjs33278@uxa.cso.uicu.edu
  38.  Merriam Lab
  39.  UIUC
  40.  
  41.