home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!newsflash.concordia.ca!mizar.cc.umanitoba.ca!ies
- From: ies@access.mbnet.mb.ca (Integrated Engineering Software)
- Subject: Problems freeing memory using "free"
- Message-ID: <BzH3uB.KnI@ccu.umanitoba.ca>
- Keywords: malloc,free,panic.
- Sender: news@ccu.umanitoba.ca
- Nntp-Posting-Host: access.mbnet.mb.ca
- Organization: University of Manitoba, Winnipeg, Canada
- Date: Fri, 18 Dec 1992 21:03:46 GMT
- Lines: 29
-
-
- Hi ,
- My question is:
- When is dynamically allotted memory using c(m)alloc freed after
- calling "free"?
-
- Using os_view() on a SGI, I am able to monitor the RAM available
- before a call to c(m)alloc and after a call to free(). The OS
- indicates that the dynamic memory has been allotted from the
- available RAM(a test problem) and but then does not release the
- allotted memory even after a call to free. After the test program
- is completed and the prompt is back, then the memory is indicated
- as available.
-
- The available RAM is critical for my app, but future malloc's
- will allot memory from the swap space which I do not want to access.
-
- Have I misunderstood some concepts here or is there a technique by
- which i can access the RAM after a "free".
- Please forward your responses to support@integrated.mb.ca.
-
- Girish Bhat
-
-
-
-
-
-
-
-