home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18654 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.3 KB  |  42 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!ies
  3. From: ies@access.mbnet.mb.ca (Integrated Engineering Software)
  4. Subject: Problems freeing memory using "free"
  5. Message-ID: <BzH3uB.KnI@ccu.umanitoba.ca>
  6. Keywords: malloc,free,panic.
  7. Sender: news@ccu.umanitoba.ca
  8. Nntp-Posting-Host: access.mbnet.mb.ca
  9. Organization: University of Manitoba, Winnipeg, Canada
  10. Date: Fri, 18 Dec 1992 21:03:46 GMT
  11. Lines: 29
  12.  
  13.  
  14. Hi ,
  15.     My question is:
  16.     When is dynamically allotted memory using c(m)alloc freed after
  17.      calling "free"?
  18.  
  19.     Using os_view() on a SGI, I am able to monitor the RAM available
  20.      before a call to c(m)alloc and after a call to free(). The OS
  21.      indicates that the dynamic memory has been allotted from the
  22.      available RAM(a test problem) and but then does not release the
  23.      allotted memory even after a call to free. After the test program
  24.      is completed and the prompt is back, then the memory is indicated
  25.      as available.
  26.  
  27.    The available RAM is critical for my app, but future malloc's
  28.    will allot memory from the swap space which I do not want to access.
  29.  
  30.    Have I misunderstood some concepts here or is there a technique by
  31.    which i can access the RAM after a "free".
  32.    Please forward your responses to support@integrated.mb.ca.
  33.  
  34.   Girish Bhat
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.