.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old February 11th, 2006, 05:32 AM
Asmala's Avatar

Asmala Asmala is offline
Captain
 
Join Date: Nov 2002
Location: Finland
Posts: 864
Thanks: 0
Thanked 0 Times in 0 Posts
Asmala is on a distinguished road
Default OT:Sharing violation when deleting folder in WinXP

Quite often when I try to remove a folder in WinXP, I get the error message: Cannot remove folder "folder name": There has been a sharing violation. The source or destination file may be in use. However, I can remove all of the files inside the folder, but not the folder itself. Also, I noticed that the folder can be deleted if I kill the explorer.exe process or restart the computer.

Had anybody else experienced this? Today I decided to find out what was causing the problem. I found what is the problem, but not why it's happening. The problem is that the explorer.exe has an file handle open in the folder. When I forced the handle to close, I could remove the folder as usual.

So, has anybody any ideas why the explorer.exe leaves an open handle there? Any other explanations than the obvious: XP sucks
__________________
'The surest sign that there is intelligent life elsewhere in the universe is that none of it has tried to contact us.' Calvin and Hobbes
Are you tough enough to be the King of the Hill?
Reply With Quote
  #2  
Old February 11th, 2006, 05:43 AM
Kamog's Avatar

Kamog Kamog is offline
Lieutenant General
 
Join Date: Nov 2002
Posts: 2,903
Thanks: 1
Thanked 0 Times in 0 Posts
Kamog is on a distinguished road
Default Re: OT:Sharing violation when deleting folder in W

That's happened to me and like you said, I reboot the computer and it then lets me delete the folder. I have no idea what causes it.
Reply With Quote
  #3  
Old February 11th, 2006, 01:51 PM
Thermodyne's Avatar

Thermodyne Thermodyne is offline
Lieutenant Colonel
 
Join Date: Dec 2000
Location: DC Burbs USA
Posts: 1,460
Thanks: 0
Thanked 1 Time in 1 Post
Thermodyne is on a distinguished road
Default Re: OT:Sharing violation when deleting folder in W

Depends on the environment that the system is setup for. Where does the folder reside in the directory structure? And what is the name of the folder? Is the system in a Domain or Workgroup?
__________________





Think about it
Reply With Quote
  #4  
Old February 12th, 2006, 03:19 PM
Asmala's Avatar

Asmala Asmala is offline
Captain
 
Join Date: Nov 2002
Location: Finland
Posts: 864
Thanks: 0
Thanked 0 Times in 0 Posts
Asmala is on a distinguished road
Default Re: OT:Sharing violation when deleting folder in W

Quote:
Thermodyne said:
Depends on the environment that the system is setup for. Where does the folder reside in the directory structure? And what is the name of the folder? Is the system in a Domain or Workgroup?
I think it doesn't matter what is the name of the folder or where the folder is. That sharing violation bug has happened many times and only pattern I've noticed is that very often there have been images in those folders. So perhaps it's something to do with XP's preview property.

However I found a great program, Process Explorer, which can be used to close those open file handles. No need to restart any more.
__________________
'The surest sign that there is intelligent life elsewhere in the universe is that none of it has tried to contact us.' Calvin and Hobbes
Are you tough enough to be the King of the Hill?
Reply With Quote
  #5  
Old February 12th, 2006, 04:41 PM
Thermodyne's Avatar

Thermodyne Thermodyne is offline
Lieutenant Colonel
 
Join Date: Dec 2000
Location: DC Burbs USA
Posts: 1,460
Thanks: 0
Thanked 1 Time in 1 Post
Thermodyne is on a distinguished road
Default Re: OT:Sharing violation when deleting folder in W

Shouldn�t be an issue with the preview indexing, unless a third party editor has modified the process. Got anything like Photoshop installed? Photoshop can really have an impact on windows if your not real careful with the install settings. Kodak is another one that can really make a lot of undocumented changes.
__________________





Think about it
Reply With Quote
  #6  
Old February 12th, 2006, 05:17 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: OT:Sharing violation when deleting folder in W

There is a long-standing bug in XP with AVI files being marked as in use forever, which there is a registry hack to bypass. Wonder if there is the same thing for image files?
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #7  
Old February 13th, 2006, 04:18 AM
Parasite's Avatar

Parasite Parasite is offline
Second Lieutenant
 
Join Date: Jul 2003
Location: Texas
Posts: 464
Thanks: 0
Thanked 0 Times in 0 Posts
Parasite is on a distinguished road
Default Re: OT:Sharing violation when deleting folder in WinXP

If you have Windows Explorer open and looking inside that directory, it is marked as being used and will not delete. Possibly another window is open to it while you were deleting files.
__________________
I thought of the sun as a big bright ball of something that produced an intense absence of darkness. Alan Dean Foster No More Crystal Tears
A++SeGdy$+-++Fr?C++++Cst+SfAi--Mm-MpTS---SsROPw++Fq++Nd++++RpG++Mm++Bb
Reply With Quote
  #8  
Old February 13th, 2006, 07:04 AM
Asmala's Avatar

Asmala Asmala is offline
Captain
 
Join Date: Nov 2002
Location: Finland
Posts: 864
Thanks: 0
Thanked 0 Times in 0 Posts
Asmala is on a distinguished road
Default Re: OT:Sharing violation when deleting folder in W

I'm not running a multi-user system nor having Explorer windows open.

Most often this happens when I transfer images from my digital camera. I use memory card reader and copy images from card to hard disk using Explorer. When I've copied images, I look through them (using IrfanView) and delete poor shots. After that when I try to rename the folder I get the sharing violation error. However I can move all the images to a new folder, but I can't rename, delete or move the original folder.
__________________
'The surest sign that there is intelligent life elsewhere in the universe is that none of it has tried to contact us.' Calvin and Hobbes
Are you tough enough to be the King of the Hill?
Reply With Quote
  #9  
Old February 13th, 2006, 09:46 AM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: OT:Sharing violation when deleting folder in W

Sounds like your camera software dosen't clean up after itself.
At least it is squatting in the corner instead of barfing all over your file system
Reply With Quote
  #10  
Old February 13th, 2006, 02:19 PM
Asmala's Avatar

Asmala Asmala is offline
Captain
 
Join Date: Nov 2002
Location: Finland
Posts: 864
Thanks: 0
Thanked 0 Times in 0 Posts
Asmala is on a distinguished road
Default Re: OT:Sharing violation when deleting folder in W

Quote:
Suicide Junkie said:
Sounds like your camera software dosen't clean up after itself.
At least it is squatting in the corner instead of barfing all over your file system
I'm not using any camera software. I use memory card reader and Ctrl-C Ctrl-V to copy images from the card.
__________________
'The surest sign that there is intelligent life elsewhere in the universe is that none of it has tried to contact us.' Calvin and Hobbes
Are you tough enough to be the King of the Hill?
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 11:41 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.