| Previous | Next |
| MF_E_PROPERTY_VECTOR_NOT_ALLOWED | MF_E_OPERATION_CANCELLED |
MF_E_PROPERTY_VECTOR_REQUIRED
MF_E_PROPERTY_VECTOR_REQUIRED is the opposite cardinality error to MF_E_PROPERTY_VECTOR_NOT_ALLOWED. The property is defined as multivalued, but the supplied PROPVARIANT contains a scalar value.
Build the PROPVARIANT as a real vector
- Verify the element type required by the property, then combine it with
VT_VECTOR. - Set the vector element count and element pointer consistently; an empty or malformed vector is a different problem.
- Use
PropVariantClearfor values returned or allocated through property APIs according to the API's ownership contract.
IMFMetadata::GetAllPropertyNames is a concrete Media Foundation example of a vector result: when names exist, the type is VT_VECTOR | VT_LPWSTR. Windows property descriptions likewise mark multivalued properties and expose them as vectors. Converting a required vector to one formatted string changes the data model and is not an equivalent fix.
Microsoft: vector metadata names · Microsoft: multipleValues property schema · Wine: property HRESULT definitions
Looking for a different code? Search another status or error code.