Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!rutgers!bellcore!clyde!watmath!focsys!larry From: larry@focsys.UUCP (Larry Williamson) Newsgroups: comp.sys.ibm.pc Subject: How to determine the filenames of open files Summary: Someone is not closing a file, who is it? Keywords: fopen fclose fname? Message-ID: <408@focsys.UUCP> Date: 22 Mar 89 21:32:24 GMT Reply-To: larry@focsys.UUCP (Larry Williamson) Distribution: na Organization: Focus Automation Systems, Waterloo, Ontario. Lines: 22 Is there someway I can determine the filenames of all the currently open files? I have an application that, after many hours of running, dies when I try to open another file. The error is something like, "too many open files." It is our application, but we are calling a number of third party library routines (GSS CGI is the main one) that open and (hopefully) close temporary files. We cannot track down any place where we open a file and don't close it, so we are beginning to suspect the other library routines. One of them is possibly not closing some temp file. But who? Any suggestions? Thanks, -Larry. -- Larry Williamson -- Focus Systems -- Waterloo, Ontario watmath!focsys!larry (519) 746-4918