Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Slow deletion of files

05 Aug 2013   #31
x BlueRobot

 

Have you tried reinstalling both of the programs again?


My System SpecsSystem Spec
.
05 Aug 2013   #32
jlauret7

Windows 7 Professional
 
 

Quote   Quote: Originally Posted by x BlueRobot View Post
Have you tried reinstalling both of the programs again?
Yes, that was one of the first thing I did before contacting the authors of Calibre eBook. Steps were
- export all my eBooks
- remove Calibre + make sure the related directories (especially where the index was) is gone; I initially
thought that my index library may be corrupt and re-creating it would help
- re-install
- re-import my books
- add one random book ... remove .. and ... same

Note though that did not have that much hope having noticed the sme slow response behavior with other apps before (an UPGRADE to a newer version "fully Windows 7 & 8 compatible" made the problem go away - I do not have that luxury with Calibre).
My System SpecsSystem Spec
06 Aug 2013   #33
UsernameIssues

W7 Pro SP1 64bit
 
 

Just so folks in the thread can see what we are talking about:



That was inside a Virtual Machine running W7pro64bit. It had 1.5GB RAM and 4 cores of a mobile i5 CPU assigned. The host computer (and thus the VM) has an SSD.

I grabbed the epub files from here:
50 top free ebook classics in Kindle and epub format | iBookNook


BTW, is it normal for the deletion process to leave the original epub files behind?
My System SpecsSystem Spec
.

06 Aug 2013   #34
jlauret7

Windows 7 Professional
 
 

Quote   Quote: Originally Posted by UsernameIssues View Post
BTW, is it normal for the deletion process to leave the original epub files behind?
A drag-and-drop will add an eBook to Calibre's private directory (for me, C:\Users\XXX\Documents\Calibre Library\$Author\$Title). Removing cleans it there for sure (but the one you dragged and dropped remains as-is of course as a copy was added). Is this what you meant?

What about if we approach this from a different angle:

What on Windows 7 can cause a thread to hang there doing nothing for 20 to 40 seconds?

Perhaps if we can name a few reasons and check, there is a chance to find the issue (although I doubt that all thread creation hang as the OS would be completely dysfunctional if that was so ... but still worth trying to think away from Calibre or DeleteXP or ... ). Especially, do you know what that SHFileOperation does? It invokes a "shell" but what does it do then and what does that mean exactly? Does it use a PATH environment and search for something (like invoke a command from the shell)? Any special directories I should be looking at then? In Unix, invoking a shell command would look into $PATH and if one of the path in $PATH is problematic (hanging or slow lookup), the execution of the command can be direly delayed ... Having no clue of Windows mechanisms for what is called "shell" activation, I am wondering if perhaps there is a similar issue here.
My System SpecsSystem Spec
06 Aug 2013   #35
x BlueRobot

 

Quote   Quote: Originally Posted by jlauret7 View Post
Quote   Quote: Originally Posted by UsernameIssues View Post
BTW, is it normal for the deletion process to leave the original epub files behind?
A drag-and-drop will add an eBook to Calibre's private directory (for me, C:\Users\XXX\Documents\Calibre Library\$Author\$Title). Removing cleans it there for sure (but the one you dragged and dropped remains as-is of course as a copy was added). Is this what you meant?

What about if we approach this from a different angle:

What on Windows 7 can cause a thread to hang there doing nothing for 20 to 40 seconds?
Information about SHFileOperation() and File System Objects:

Working with Files

SHFileOperation function (Windows)

The thread could have a lower priority level, but the thread should receive a priority boost after a while to prevent CPU starvation.

Open Process Explorer, and then double click the DeleteXP.exe process, go to the Threads tab, and then post a screenshot - Screenshots and Files - Upload and Post in Seven Forums

Base Priority = Starting priority of the thread associated with the process.

Dynamic Priority = The current priority of the thread.

Slow deletion of files-ff.jpg


My System SpecsSystem Spec
07 Aug 2013   #36
jlauret7

Windows 7 Professional
 
 

[QUOTE=x BlueRobot;2489198]
Quote   Quote: Originally Posted by jlauret7 View Post
Open Process Explorer, and then double click the DeleteXP.exe process, go to the Threads tab, and then post a screenshot - Screenshots and Files - Upload and Post in Seven Forums

Base Priority = Starting priority of the thread associated with the process.

Dynamic Priority = The current priority of the thread.
OK, trying ... see the attachment below (I do not see anything strange I have to say).


Attached Images
Slow deletion of files-deletexp-threads.png 
My System SpecsSystem Spec
07 Aug 2013   #37
x BlueRobot

 

Does it act slow when you have other programs open? Ensure you have the two programs running if your creating the User-Mode dump file:

Try creating a User-Mode dump file - How to create a user-mode process dump file in Windows Vista and in Windows 7

Then upload the dump files to here with - Screenshots and Files - Upload and Post in Seven Forums
My System SpecsSystem Spec
13 Aug 2013   #38
jlauret7

Windows 7 Professional
 
 

Quote   Quote: Originally Posted by x BlueRobot View Post
Does it act slow when you have other programs open? Ensure you have the two programs running if your creating the User-Mode dump file:

Try creating a User-Mode dump file - How to create a user-mode process dump file in Windows Vista and in Windows 7

Then upload the dump files to here [...]
OK, so I created a dump of DeleteXP.exe (again just because it is a smaller program - if there is a need for one from Calibre, could do that instead). However, the full dump is 15 MB compressed ... So I am uploading the minidump.
My System SpecsSystem Spec
13 Aug 2013   #39
x BlueRobot

 

The call stack for the dump file seems to be corrupt, create a Minidump of both processes with ProcDump
My System SpecsSystem Spec
15 Aug 2013   #40
jlauret7

Windows 7 Professional
 
 

Quote   Quote: Originally Posted by x BlueRobot View Post
The call stack for the dump file seems to be corrupt, create a Minidump of both processes with ProcDump
Sorry again for the delay in responding (on the move until next week).
I have tried again using procdump.exe and attach both calibre and DeleteXP - I waited until the command
got stuck to proceed with a dump (noticed the dump creation is near immediate). I hope those dumps are
fine.
My System SpecsSystem Spec
Reply

 Slow deletion of files




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Shift+Delete problems and reappearing files after deletion
Hello, I have had a good clean copy of Windows 7 installed for some time now and right from the start I noticed a problem that until recently, I managed to tolerate. Whenever I shift+delete a file that is an executable, batch file or similar, it returns temporarily then dissapears on it's own...
General Discussion
Best (free!) recovery software to use after deletion of files
Hello everyone, it's me again! I need some assistance, after a mate of my e-mailed me as has deleted some files by mistake, and was wondering how to get them back (If possible?) I do wish people would stop pestering me, due to my slightly better than average knowledge of PCs! Here's his e-mail:...
Backup and Restore
Creating a Files log deletion
I see there is no log in windows 7 about the deleted files I often use the shift + delete to delete files I do not need, unfortunately sometimes the parent folder gets deleted instead (focus on the left tree area instead of the right list area) at least, a list of the deleted files would be...
General Discussion
Restore files after accedental partiition deletion
Heres the deal: 2 drives: 1TB WD where all my files are 120 OCZ SSD were I load my O/S from I was quickly going thru the motions of installing windows and got to the part about where I wanted it. I deleted the entire partition table in both of my drives. Quickly realizing what I did, I...
Backup and Restore
How do I restore the .exe files deletion warning popup in Win7 ?
When you delete an .exe file, Win7 opens a popup warning and it's got a selection box to "don't ask again for all files of this type" (or something like that). I left unintentionaly the selection on, and as a result the popup warning is not opening, and .exe files are deleted in just one step. ...
General Discussion
Accidental deletion of sent files Outlook 07
Any chance of recovery of the sent file folder which was accidentally deleted. Outlook 2007 :( Actually just the files in the sent folder, not the folder itself.
Microsoft Office


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:32.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App