Article View: comp.os.msdos.programmer
Article #4553Gnu-awk (gawk) memory problems under MSDOS
From: Daniel Barron
Date: Mon, 14 Jan 1991 02:00
Date: Mon, 14 Jan 1991 02:00
31 lines
1724 bytes
1724 bytes
Hi! Sorry if any of the above are inappropriate groups, please excuse.
I'm writing a Gnu-awk (gawk) script on an IBM XT with MSDOS 3.3.
It's designed to massage data from one program's output to another's
input. Problem is, each time a line is processed, about 10-15K of
memory gets used (checked via system( "chkdsk" ) ). After 25-30 lines
I get
xalloc: no memory!
Help! What could make my program gobble memory? A bad function call?
I have three small functions, but I think things are ok. I'm using
split() a lot, if that rings any bells...I really can't think why this
is happening, but I need to fix it fast!
An earlier, less complicated version of the program doesn't act like
this. Memory drops by about 15K after one line, but then remains
exactly the same. This is how I thought it should act.
Any help appreciated: please E-mail barron@wharton.upenn.edu or
barron@dacth01.bitnet
Thanks in advance,
Dan Barron
--
_______________________________Daniel Barron__________________________________
| E-mail: barron@scrolls.wharton.upenn.edu
"Hunger only for a taste of justice. | barron@wharton.upenn.edu
Hunger only for a word of truth." | barron@rm105serve.sas.upenn.edu
Technical Details
Message-ID:
<35613@netnews.upenn.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!cert!netnews.upenn.edu!desci!barronShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!cert!netnews.upenn.edu!desci!barron From: barron@desci.wharton.upenn.edu (Daniel Barron) Newsgroups: comp.os.msdos.programmer,comp.unix.programmer Subject: Gnu-awk (gawk) memory problems under MSDOS Message-ID: <35613@netnews.upenn.edu> Date: 14 Jan 91 02:00:00 GMT Sender: news@netnews.upenn.edu Organization: desci Lines: 31 Originator: barron@desci