Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

mfx_dispatch can lead to unexpected process behaviour

OTorg
New Contributor III
132 Views

mfx_dll_load() makes two SetErrorMode() calls, to set SEM_FAILCRITICALERRORS and then to revert to original.
But SetErrorMode() is process-wide!
This may lead to unexpected behaviour at multithreading modular applications.
The correct way is to use SetThreadErrorMode(). It was introduced at win7 and minimal os imsdk requires is win7.

0 Kudos
1 Solution
Petter_L_Intel
Employee
132 Views

Hi,

Thanks for your feedback. We will explore improving the behavior for the next Media SDK release.

Regards,
Petter 

View solution in original post

2 Replies
Petter_L_Intel
Employee
133 Views

Hi,

Thanks for your feedback. We will explore improving the behavior for the next Media SDK release.

Regards,
Petter 

OTorg
New Contributor III
132 Views

Ok. Thank you!

PS:
The same SetErrorMode calls are present at DXDevice::LoadDLLModule() also...

Reply