home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!usc!cs.utexas.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!po.CWRU.Edu!wct
- From: wct@po.CWRU.Edu (William C. Thompson)
- Subject: Programming locking only when called from batch
- Message-ID: <1992Jul30.022409.6514@usenet.ins.cwru.edu>
- Sender: news@usenet.ins.cwru.edu
- Nntp-Posting-Host: cwns5.ins.cwru.edu
- Reply-To: wct@po.CWRU.Edu (William C. Thompson)
- Organization: Case Western Reserve University, Cleveland, OH (USA)
- Date: Thu, 30 Jul 92 02:24:09 GMT
- Lines: 17
-
-
- I have modified the output of the program that comes with TP6 that
- shows the files & directories. The program is virtually the same.
- If I run the program from a batch file in a directory with few
- entries, no problem. If I run the program directly (no batch) in
- a directory with several entries, no problem. If I run the program
- in a directory with several entries, it either locks or does strange
- things. I have already hunted the pointer references, which are
- very few. I'm not doing anything stupid like not allocating
- memory, deallocating too much, or assigning things to a nil pointer.
- The problem appears to be with the stack size, which I increased to
- 30K, which theoretically should support a directory with over 100,
- more than DOS allows. Why would the program not lock when directly
- called but it would when called from a batch file?
- --
- "What do you mean Star Trek isn't real!?" - anonymous
-