Community
cancel
Showing results for 
Search instead for 
Did you mean: 
OTorg
New Contributor II
64 Views

mfx_dispatch can lead to unexpected process behaviour

Jump to solution

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
64 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
65 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

OTorg
New Contributor II
64 Views

Ok. Thank you!

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

Reply