-
Notifications
You must be signed in to change notification settings - Fork 90
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
Take Snapshot button crashes the application #43
Comments
What build/version of Windows do you see this behavior on? |
I am running Version 20H2 (OS Build 19042.1466). |
Hmmm, my home machine is on a slightly newer build (19043.1526) and I'm unable to reproduce it. I'll see if I can setup a machine with the same build. |
I have the same problem when I build x64 and run on win 10.0.119043. |
That's interesting. Could you try attaching a debugger and do the following:
Are they the same? If not, this may be the source of the issue. Try calling |
I tried what you suggested. Both are the same thread. In WinMain: In App.TakeSnapshotAsync: However, the exception is thrown in another thread: This thread starts at base.h: Maybe it is expected that this code is running on a different thread, I did not look into the details. |
I am running the code (Debug X64 both with VS2019 and VS2022), and it crashes when I click on the Take Snapshot button. The crash happens in:
auto file = co_await m_savePicker.PickSaveFileAsync();
I've seen people reporting crashes in the FileSavePicker dialog, but the reported tickets have been closed with the advice to Initialize the object with Window handle, which you already do:
window.InitializeObjectWithWindowHandle(savePicker);
The CapturePicker however does work, but only when indeed you initialize it with the window handle.
It seems there is still something wrong with the FileSavePicker.
The text was updated successfully, but these errors were encountered: