WinMerge / winmerge

WinMerge is an Open Source differencing and merging tool for Windows. WinMerge can compare both folders and files, presenting differences in a visual text format that is easy to understand and handle.
https://winmerge.org/
GNU General Public License v2.0
6.43k stars 797 forks source link

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

Closed ganer9 closed 7 months ago

ganer9 commented 8 months ago

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

sdottaka commented 8 months ago

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.

ganer9 commented 8 months ago

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: @.***>

sdottaka commented 8 months ago

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

ganer9 commented 8 months ago

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: @.***>

sdottaka commented 8 months ago

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

ganer9 commented 8 months ago

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.

sdottaka commented 8 months ago

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

ganer9 commented 8 months ago

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

pgert commented 8 months ago

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.

ganer9 commented 8 months ago

The problem occured again today.

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

sdottaka commented 8 months ago

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.

ganer9 commented 8 months ago

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

sdottaka commented 8 months ago

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/

ganer9 commented 8 months ago

Yes