-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example cpp/ScreenCaptureforHWND not working - Unhandled exception at 0x00007FFD3B8B9129 (KernelBase.dll) in ScreenCaptureforHWND.exe #37
Comments
It seems that you're failing the QI to get the IGraphicsCaptureItemInterop interface. Which version of Windows are you running? This feature was added in the 1903 update. |
I have OS Build 10.0.17763.557 |
Hello, after I updated the example works. Good. is there an otption to not capture the mouse pointer? And now I have another issue with the API function DwmRegisterThumbnail from here: My program makes some big use with this function and after this update the function is not working as expected. Please see the issue I reported to Microsoft: I know that the issue is not related to this. I just don't know where to get the support. The issue is big and it broke something in my program... Thanks |
Glad to hear the sample is working. The current Insider builds have an API we plan to add that makes the cursor rendering configurable. Look for a new property on As for your issue with DwmRegisterThumbnail, what exactly are you having a problem with? Multiple thumbnails that are assigned to a single window, or the same thumbnail (or at least thumbnails targeting the same window) across multiple windows? I tried both just now and couldn't reproduce any issues. What would I do to reproduce this? |
Hello, I think that the problem is when you use the API via DLL file.. I could reproduce the bug only by using the API from a script that written in Autoit. Please try to run this code: Note that you will need to update the target window to display a preview for in line: The problem is that you will see only one window getting the live preview. it did not happned before the update. The preview 2 window don't get a live preview. Only the first one. The second preview will work. I think that the problem is because the API returns the same HTHUMBNAIL twice. |
It seems that you did some change in dwmapi.dll in this update. I know this because I found the solution. And then in any line that calls the dll, I need to use the dll handle This was solved the issue and now the script print different HTHUMBNAIL on the second call as expected. |
That seems like there was a behavior change in Autoit, I can't get this to happen in C++. Glad everything was sorted out for you. |
Hi gileli121 - I wanted to comment on your question re: mouse cursors. Insider preview builds 18894 or greater have a new property on GraphicsCaptureSession named IsCursorCaptureEnabled. Release notes are here. |
Thanks. |
@robmikh I am seeing this error in the latest version of Windows 10 LTSC 1809 (17763.1728). Am I out of luck? |
Hello, I tried to run the example
ScreenCaptureforHWND
Using Visual Studio 2019 on Windows 10 64bit with SDK 10.0.18362.0
The example app was successfully built and working until I select some window to capture.
When I select a window, it always throws an exception
Unhandled exception at 0x00007FFD3B8B9129 (KernelBase.dll) in ScreenCaptureforHWND.exe: 0xC000041D: An unhandled exception was encountered during a user callback.
It is no matter what window I select. It always fails in this like.
Please fix the example.
Thank you.
The text was updated successfully, but these errors were encountered: