Path: 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 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