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

Re: TSVNCache.exe opens filehandles

From: Kevin Grover <kogrover_at_yahoo.com>
Date: 2006-07-22 20:36:45 CEST

Perhaps my program is not issuing that message? I've tried to unmount a DriveCrypt drive 3 or 4 times to no avail. When I kill TSVNcache, it unmounts with no problem.

I right click on the DriveCrypt systray icon, choose 'Unmount All' and I get the message that the device is in use.

BTW, I've loaded ProcessExplorer and looked at the TSVNCache handles and sure enough, I can see the open handles on the drive I'm trying to mount. (WinXP SP2) and I just re-installed the latest TSVN 1.3.5 (about 3 days ago).

My suggestion about the 'Flush Cache' command would allow TSVNCache to work with all programs/drivers, even if they do not correctly obey the 'Windows Rules'.

----- Original Message ----
From: Stefan Küng <tortoisesvn@gmail.com>
To: users@tortoisesvn.tigris.org
Sent: Friday, July 21, 2006 12:23:40 PM
Subject: Re: TSVNCache.exe opens filehandles

Kevin Grover wrote:

TSVNCache already reacts to the windows message WM_DEVICECHANGE which
windows uses to ask all programs interested (like TSVNCache) to close
any open handles on a disk. When TSVNCache receives such a message, it
closes all handles on the disk. After that, windows can unmount the
device just fine.
You may have to try two times to "eject" a device, because the cache
needs some time to close the handle (some threads may still need it, and
it has to wait for those threads to finish), and windows only waits
about a second before giving up. So if you try a second time after
windows tells you that it can't eject the device, it will work.

There's not much more TSVN can do than that.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Sat Jul 22 20:36:54 2006

This is an archived mail posted to the TortoiseSVN Users mailing list.

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