CHDKUtil / usbeject

.NET class library to safely eject removable storage
https://chdkutil.github.io/UsbEject
0 stars 1 forks source link

Claims falsefully successful eject on Win 10 #2

Open OneWorld123 opened 6 years ago

OneWorld123 commented 6 years ago

Hi, I integrated your code into my application and tested it successfully on Windows 7.

This is the version of your code I used:

  <package id="UsbEject" version="3.2.1-alpha" targetFramework="net40" />
  <package id="Chimp.Logging.Core" version="0.2.0-alpha" targetFramework="net40" />

Eject worked as expected. However, the application is meant for a device with this Windows Version:

Windows 10 Enterprise 2015 LTSB Build 10240. This is an enterprise version for IoT devices with longterm support which suits industrial needs.

Unfortunately, on this OS your code claims a successful eject. However, the drive is still mounted afterwards.

I did not investigate further since I am not able to debug on the desired device and because that answer worked: https://stackoverflow.com/questions/7704599/eject-usb-device-via-c-sharp/36226588#36226588

aliaga-d commented 5 years ago

Same OS (Windows 10 Enterprise 2016 LTSB Build 14393.1613 and same thing happening. Sometimes the program claims that there was a succesful eject but the drive is still mounted. Works if called again