[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: possible file/dir handle leaks

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2003-12-16 22:18:35 CET

> On a sidenote:
>
> While it is a good idea to close still open handles when a pool
> is destroyed, it's better if the handles are closed immediately
> after they're not needed anymore. Because it is often the case
> that the pool and the data stored in it is needed much, much
> longer than an open file. If I have to destroy a pool to close
> all handles, then I have to create a separate pool and copy
> all the data I still need over there...

The files are also closed when the pool is cleared. There is no need to
destroy the pool for that. Generally it is a good idea to clear pools if you
expect a long period of inactivity. In case of TSVN I would create a pool per
menu action and another for long lived data between menu actions. (But you
probably know that; I'm not familiar with TSVN code...)

bye,

Erik.

-- 
+++ GMX - die erste Adresse für Mail, Message, More +++
Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 16 22:19:14 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.