ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 MediaFoundationSourceReader calls crash app on VM
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

fourwhey

20 Posts

Posted - Nov 09 2016 :  10:48:28  Show Profile  Reply
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


xequte

38616 Posts

Posted - Nov 11 2016 :  15:52:57  Show Profile  Reply
OK, we'll take a look.

If you can reproduce on a dev machine, you might want to step into the ImageEn code and see if it gives the nature of the failure.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

fourwhey

20 Posts

Posted - Nov 14 2016 :  09:08:54  Show Profile  Reply
Thank you for the reply.

If I have time, I'll setup the dev tools on one of the VMs and report back.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: