Article View: comp.sys.amiga.tech
Article #11750losing memory when run from wb
From: Jonathan Hue
Date: Fri, 10 Mar 1989 07:06
Date: Fri, 10 Mar 1989 07:06
19 lines
952 bytes
952 bytes
I know this is a commonly asked question, but I've never seen the answer. I have a program which returns all of its dynamically allocated memory when run from the CLI, but loses ~50-120 bytes from run from the workbench. I found that if I do the following, all memory is returned: fclose(stdin); fclose(stdout); fclose(stderr); rbrk(); exit(0); My question is, is this dangerous (the rbrk())? I notice a lot of programs when run from workbench don't return all their memory. I'm using Lattice 5.02 (wb programs work, hurray!) -Jonathan uunet!jvc!jonathan
Technical Details
Message-ID:
<324@jvc.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!jvc!jonathanShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!jvc!jonathan From: jonathan@jvc.UUCP (Jonathan Hue) Newsgroups: comp.sys.amiga.tech Subject: losing memory when run from wb Message-ID: <324@jvc.UUCP> Date: 10 Mar 89 07:06:38 GMT Organization: JVC Laboratory of America Lines: 19