Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mit-eddie!uw-beaver!uw-june!fred.cs.washington.edu!slh From: slh@fred.cs.washington.edu (Scott Heyano) Newsgroups: comp.os.os2.misc Subject: Re: near heap space Message-ID: <12599@june.cs.washington.edu> Date: 20 Jul 90 03:34:25 GMT References: <1990Jul19.003747.18984@murdoch.acc.Virginia.EDU> Sender: news@cs.washington.edu Reply-To: slh@fred.cs.washington.edu (Scott Heyano) Distribution: usa Organization: Computer Science & Engineering, U. of Washington, Seattle Lines: 18 In article <1990Jul19.003747.18984@murdoch.acc.Virginia.EDU> tg2r@dale.acc.Virginia.EDU (Todd Greenwald) writes: >As my pm programs increase in size, I'm increasingly encountering >a compile error "out of near heap space". I'm using the IBMc2 >compiler. Has anyone encountered this and found a fix. (I've >discovered some interesting solutions; like removing INCL_WIN when >there were no Win calls being made.) >Thanks >Todd Greenwald Making the source smaller is the solution. And by including fewer header files or less header file (I'm not sure which counts exactly), that is what you are doing. Also, of course, if your program is getting large, break it into smaller files. I've run into the problem when with a source that was only about 500 lines long, but included alot of win and gpi stuff and I had to move the code with the gpi calls to another file. This really pissed me off since it was such a small source file.