> Does that mean that I may end up with 100s of open files, or will they > be closed down automatically, as I leave the subroutine?
Yes, you'll have 100s of open files. No file are closed automatically when you leave a subroutine. > Is there a way to find out how many open files an application has? Yes, use SysInternals ProcessExplorer and other tool. See http://www.microsoft.com/technet/sysinternals/default.mspx The command line tools "Handle" can do the same job at the command line level (http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/Handle.mspx). Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware MidWare The author of the freeware Internet Component Suite (ICS) http://www.overbyte.be ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, May 28, 2007 3:09 PM Subject: Open files? > Well this may be old hat for some, but ... > > Is there a way to find out how many open files an application has? > Some run-time call, some debug window from within the IDE or even XP's > Task Manager does not mater, at it just is something I want to check. > > In fact I open a file (f : file declared as local var) in a > subroutine, read the file entirely to memory, but do not close it > again, I now see. (have adden a FileClose(f); now!) > > In fact I may call that subroutine a fairly huge number of times, > opening different files during a session. > Does that mean that I may end up with 100s of open files, or will they > be closed down automatically, as I leave the subroutine? > > And/or as the files opened repeat, will I only end up with the number > of different file names, or a number equivalent to the number of calls > to the subroutine? > > I am using D6 prof. under XP prof. > _______________________________________________ > Delphi mailing list -> [email protected] > http://www.elists.org/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

