winmerge icon indicating copy to clipboard operation
winmerge copied to clipboard

unable to "Safely Remove Hardware or eject Media" after a WinMerge

Open ganer9 opened this issue 1 year ago • 14 comments

I connected an external HDD. I compared the contents using WinMerge. After task completion, I closed WinMerge

I tried to Safely Remove Hardware and Eject Media > Eject "External HDD name"

I get error windows error on eject

ganer9 avatar Jan 20 '24 03:01 ganer9

Looking at the attached image, it looks like the WinMerge process is still running. Please terminate all WinMerge processes. Occasionally, processes may remain even after WinMerge is terminated, so in that case, please terminate the WinMerge process from taskmgr.

sdottaka avatar Jan 20 '24 08:01 sdottaka

There are no Winmerge processes running in the background.Please see screenshot

On Saturday, 20 January, 2024 at 02:16:32 pm IST, Takashi Sawanaka ***@***.***> wrote:  

Looking at the attached image, it looks like the WinMerge process is still running. Please terminate all WinMerge processes. Occasionally, processes may remain even after WinMerge is terminated, so in that case, please terminate the WinMerge process from taskmgr.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ganer9 avatar Jan 20 '24 10:01 ganer9

If the WinMerge process does not exist, I think another process is referencing the external HDD.

sdottaka avatar Jan 20 '24 11:01 sdottaka

I get the error msg whenever I reference the external HDD in WinMerge not otherwise

On Saturday, 20 January, 2024 at 04:38:01 pm IST, Takashi Sawanaka ***@***.***> wrote:  

If the WinMerge process does not exist, I think another process is referencing the external HDD.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ganer9 avatar Jan 20 '24 12:01 ganer9

Since you replied via email, the second image you probably attached is not visible in the GitHub issue, so we couldn't confirm whether the WinMerge process exists. If the WinMerge process is displayed in the task manager as shown in the attached image, forcefully terminate it. If the external HDD cannot be safely removed even though the WinMerge process does not exist, it is not a WinMerge problem, but an OS problem or another process is referencing it. image

sdottaka avatar Jan 20 '24 22:01 sdottaka

Taskmgr_ _EjectMedia_screenshot Herein attached is the screenshot I have mentioned above.

I can confirm there are no WinMerge processes running

When Iam not using Winmerge on the external HDD, I can safely remove the external HDD without getting any error msg. This leads me to conclude that Winmerge has a role in the appearance of error msg.

ganer9 avatar Jan 21 '24 09:01 ganer9

It seems that you can use Resource Monitor to find out which processes are referencing files and folders on the external HDD. Could you please try searching by specifying external HDD drive name:\ in Resource Monitor as shown below?

image

sdottaka avatar Jan 21 '24 22:01 sdottaka

As if by magic, I'm not able to reproduce the error now

ganer9 avatar Jan 22 '24 00:01 ganer9

I occasionally have this problem, but then it's WinMerge unrelated. It usually can be solved by pressing the OK button on the message-dialog, and then make another reguest for safe removal of the storage-medium, which then is granted. Annoying Windows bug.

pgert avatar Jan 27 '24 18:01 pgert

The problem occured again today.

I opened resmon. Guess what? There is no error after that

ganer9 avatar Feb 03 '24 13:02 ganer9

If WinMerge isn't showing up in resmon, at least it's not a WinMerge problem. If nothing is displayed, the OS itself may be referencing the external HDD, or virus scanning software may be temporarily referencing it.

sdottaka avatar Feb 04 '24 22:02 sdottaka

The problem occurred again (after a WinMerge compare , and closing WinMerge) I opened resmon. WinMerge isn't displayed

In Task Manager, Status of Application "Problem Ejecting USB Mass Storage Device" is running

My question: How to track this Application in resmon

ganer9 avatar Feb 05 '24 02:02 ganer9

I don't know how. Is the following URL helpful for how to safely remove an external HDD? https://techcult.com/fix-problem-ejecting-usb-mass-storage-device/

sdottaka avatar Feb 05 '24 11:02 sdottaka

Yes

ganer9 avatar Feb 09 '24 23:02 ganer9