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

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!gatech!news.ans.net!cmcl2!panix!os2man
  3. From: os2man@panix.com (Larry Salomon Jr.)
  4. Subject: Re: OS/2 memory management (ARGH!)
  5. Message-ID: <1992Nov11.135504.7459@panix.com>
  6. Date: Wed, 11 Nov 1992 13:55:04 GMT
  7. References: <1b68f11e@p11.f9.n242.z2.fidonet.org>
  8. Organization: PANIX Public Access Unix, NYC
  9. Lines: 52
  10.  
  11. In <1b68f11e@p11.f9.n242.z2.fidonet.org> Roman_Grzondziel@freax.fido.de (Roman Grzondziel) writes:
  12.  
  13. >Hi there,
  14.  
  15. >I am having some problems with OS/2 2.0 lately. There seem to be some
  16. >design (!) bugs in the system which seem to eat up the free store!
  17. >An exaple:
  18.  
  19. >1.  start the system editor (e.exe)
  20. >2.  select the "OPEN" menu and get the file requester
  21. >3.  enter *.argh (so that it won't find anything that fits - don't forget
  22. >    the wildcard!)
  23. >4.  keep pushing the "OPEN" button.
  24.  
  25. >Now watch what is happening with your memory! After few clicks the
  26. >system has only 512 kb free store left and begins to expand the swap file.
  27. >It seems like you can fill up any partition (no matter how large) this
  28. >way :) The memory is being freed but not before I quit the application.
  29.  
  30. >The same happens in every app (including mine) that uses the file
  31. >requester! Is there *any* "good" reason for this bug??? (I consider this
  32. >being a bug, of course :))
  33.  
  34. This is probably a bug in the file dialog.  Can some IBMer forward this to
  35. Dave Bernath (DBERNATH at CARVM3)?  Thanks.
  36.  
  37. >Another annoyance: my program is using the PM interface, starting some
  38. >separate windowed and not-windowed threads... I am not using any
  39. >dynamic memory functions (like malloc etc.). But still, after playing
  40. >with it for a while, I'm getting errors like "Maximum heap size reached"!
  41. >(from one of the debugging hooks in my code). Sometimes the application
  42. >quits right after this warning. While clicking around, I keep repeating the 
  43. >same sequences that do *not* create any new memory objects nor any new items. 
  44. >After a while, the memory status display starts showing increasingly shrinking 
  45. >store. WHY?! But sometimes the error appears even before this happens! 
  46. >AAAAAAAAAARGH!
  47.  
  48. >Can anybody give me a hint?! I would be *very* grateful for any help.
  49. >I am getting crazy here searching for a (of course still possible)
  50. >bug in my code and not being able to find anything wrong! HELP!
  51.  
  52. Remember that there could be things going on under the covers.  For example,
  53. WinInitialize() calls DosR2StackRealloc() to increase the size of the ring 2
  54. stack (or it did in 1.x).  The memory loss (I'll leave *that* one alone) could
  55. be the result of something else you are doing.
  56.  
  57. Cheers,
  58. Q
  59. -- 
  60. "If you choose not to decide, you  | "A fool and his money are fun to go
  61.  still have made a choice" - Rush  |  out with" - seen on a T-shirt
  62. ------------------------------------------------------------------------
  63.