Xref: news2.mv.net comp.os.msdos.djgpp:7880 From: tyuan AT beta DOT wsl DOT sinica DOT edu DOT tw (Tein H. Yuan(袁天竑)) Newsgroups: comp.os.msdos.djgpp Subject: Re: memory overwriting itself?? Date: 23 Aug 1996 07:50:21 GMT Organization: Computing Center, Academia Sinica Lines: 31 Message-ID: <4vjnrt$oat@gate.sinica.edu.tw> References: <4ved7k$gps AT news DOT ysu DOT edu> NNTP-Posting-Host: tyuan%@beta.wsl.sinica.edu.tw To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp randall williams (ac387 AT yfn DOT ysu DOT edu) wrote: : I finally finished, sort of, a project I've been working on. : I found a problem maybe a bug. I have a function that uses the : system() to make a dir list file and then it reads the file : in for a directory menu. I know it can be done another way, but : I do the same thing with a program's output and it saves some : space. the function also moves around the directory tree, so it : has to be able to read the directory several times. The open file : is closed after it is read, and removed with unlink(). I met a problem with system() several months ago. While my program takes small amount of memory, it runs great. Unfortunatelly, while the requested memory is increased, my program is always failed at the statement system(). Finally, I use system("c:\\command.com /C tde.exe arguments..."); instaed of system("tde.exe arguments..."); to solve the problem. -- Tein =========================================================== Tein Horng Yuan (袁天竑) (voice): 886-2-789-9247 (fax): 886-2-783-6444 Email: tyuan AT beta DOT wsl DOT sinica DOT edu DOT tw URL: http://phi.sinica.edu.tw/~tyuan/ =========================================================== 菩提本自性,起心即是妄;淨心在妄中,但正無三障。 六祖壇經 般若品第二 ===========================================================