Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!sharkey!msuinfo!galaxy.cps.msu.edu!bourd From: bourd@galaxy.cps.msu.edu (Robert Bourdeau) Newsgroups: comp.lang.c++ Subject: Re: Turbo C++ & Zortech C++ memory problems Keywords: memory, inline code Message-ID: <1991Jan10.143902.23969@msuinfo.cl.msu.edu> Date: 10 Jan 91 14:39:02 GMT References: <6818@tekred.CNA.TEK.COM> Sender: news@msuinfo.cl.msu.edu Reply-To: bourd@galaxy.cps.msu.edu (Robert Bourdeau) Followup-To: comp.lang.c++ Organization: Computer Science, Michigan State University, E. Lansing Lines: 30 In article <6818@tekred.CNA.TEK.COM>, waynet@tekred.CNA.TEK.COM (Wayne Turner) writes: |> We are developing a commercial application under DOS using |> Turbo C++ Version 1.01 and are consistently running into "Out |> of memory", "Not enough memory" errors from the command-line |> versions of the compiler and linker. The application itself is |> not huge--the source consists of about 5-6K lines and the |> current .EXE takes up about 360K bytes when loaded. |> Following up on your problems with TurboC++, I too have had the same problems. The application which I have been involved in developing is currently about 10K lines of my own source code not considering the class library and include files. The class hierarchy which I have developed is approximately 7 levels deep at the greatest. I was using a lot of inline code in my low level class definitions to improve performance, and it was this that was causing me a great deal of memory problems. When I reduced the inline code to only the most minimal situations, the memory problems went away. Apparently, using inline code requires a significant amount of RAM to hang on to, and it does not take a whole lot of code to use up all available space. Hope this helps some. Robert Bourdeau bourd@buster.cps.msu.edu Michigan State University