I'm using D7 and ImageEn 6.3.0.
I have multiple VM hosts running Hyper-V Server 2012 R2, with client OS instances running Server 2008 R2. For each of the VM instances, my application will crash when it attempts to access MediaFoundationSourceReader, while nearly identically configured OS's running on physical hardware work fine.
The servers obviously don't have a camera, but just accessing MediaFoundation to check for the presence of one causes things to uncontrollably crash.
I've tried wrapping calls to ImageEn.IO.MediaFoundationSourceReader in try/catch, but it still throws an exception.
Any idea what I might be able to do to catch the exception or possibly another workaround?
Here's the stack trace, where I called: ImageEn.IO.MediaFoundationSourceReader.StopCapture;
main thread ($1218):
0049ff3e +00a Test.exe SyncObjs 217 +1 TCriticalSection.Enter
00765179 +00d Test.exe iemmf 2726 +1 TIEMediaFoundationSourceReader.Lock
00766308 +00c Test.exe iemmf 4112 +2 TIEMediaFoundationSourceReader.PauseCapture
0076620a +00a Test.exe iemmf 4016 +1 TIEMediaFoundationSourceReader.StopCapture
00a63984 +02c Test.exe CaptureImage 3856 +4 TFormCaptureImage.FormDestroy
0050a3c5 +031 Test.exe Forms 2660 +3 TCustomForm.DoDestroy
0050a279 +045 Test.exe Forms 2631 +3 TCustomForm.Destroy
004ede88 +0b0 Test.exe Controls 5429 +16 TWinControl.Destroy
004f5744 +028 Test.exe Controls 8901 +2 TCustomControl.Destroy
004ede88 +0b0 Test.exe Controls 5429 +16 TWinControl.Destroy
00509306 +036 Test.exe Forms 2076 +3 TScrollingWinControl.Destroy
0050a2df +0ab Test.exe Forms 2638 +10 TCustomForm.Destroy
0048d98e +05a Test.exe Classes 9853 +9 TComponent.DestroyComponents
00507d06 +036 Test.exe Forms 1348 +3 DoneApplication
00468854 +03c Test.exe SysUtils 3409 +6 DoExitProc
004053d7 +023 Test.exe System 11349 +19 @Halt0
00d0af10 +1bc Test.exe Test 131 +29 initialization
757e3368 +010 kernel32.dll BaseThreadInitThunk