Comments (3)
I just noticed that the problem also occurs when MediaDevice.GetDevices() is called from the EventArrived-EventHandler of the ManagementEventWatcher class.
If two devices are connected and a device is disconnected, we call the MediaDevice.GetDevices() method directly from the EventArrived-EventHandler. The MediaDevice object returned by this method is not completely initialized, e.g. the Manufacturer field contains this string instead of the manufacturer: "M\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
from mediadevices.
MediaDevices is a C# wrapper for COM objects.
The corresponding apartment model is to be considered.
from mediadevices.
I have the same issue. Which apartment model is required?
from mediadevices.
Related Issues (20)
- OutOfMemoryException when downloading large files HOT 2
- Get Serial Port name? HOT 1
- Exception in `MediaDevice.VendorOpcodes` - 'ToInt does not work for value type VT_UI4'
- Thumbnail rotation
- HasFiles() / HasAnyFile() on directory
- thread safety HOT 1
- Provide a basic simple example HOT 1
- DownloadFile
- Mount `/` instead of `/storage/emulated/0/`
- VT_ERROR: 0x80070490 HOT 1
- Unable to get the file name containing special characters correctly HOT 2
- Not an issue but rather a thank you HOT 2
- Reusing the same MemoryStream object for UploadFile throws COMException with HRESULT 0x800704C7 HOT 2
- Slow performance when using UploadFile with MemoryStream HOT 3
- Device cannot connect again HOT 8
- Expose writing Stream on MediaFileInfo HOT 1
- Avoid operation delay after delete object by setting the COOKIE policy HOT 2
- Checksum HOT 1
- UploadFile() issues HOT 1
- Redmi 9T: Can't get device friendly name HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mediadevices.