-
Notifications
You must be signed in to change notification settings - Fork 335
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
Various errors/warnings in Visual Studio when writing to ApplicationData.LocalSettings #1937
Comments
@JosHuybrighs
Issue 2:
Thank you very much. |
@alexlamtest Thanks for the feedback. |
Closing this per @JosHuybrighs's comments. |
Maybe consider reopening this issue for further investigation or documentation. I built an app using the WinUI 3 Desktop App (packaged) template and called ApplicationData.Current.LocalSettings from within a class library built from the WinUI 3 Class Library template (the class library method was being called from the UnhandledException handler of the app). In Debug mode it worked but in non-Debug it threw an exception. Calling ApplicationDataManager.CreateForPackageFamily instead of ApplicationData.Current seemed to work. Sorry I don't have a standalone example. |
Describe the bug
I am using Windows App SDK v1.0 in a Desktop app (wap-packaged) and are seeing errors/warnings in Visual Studio when assigning key/values to ApplicationData.Current.LocalSettings.
Issue 1:
ApplicationData.Current.LocalSettings.Values["AString"] = "1234";
Generates:
This issue was originally reported on issue #1909
Issue 2:
Generates:
onecore\base\appmodel\statemanager\apiset\lib\stateatom.cpp(593)\kernelbase.dll!772F3595: (caller: 772E68DF) ReturnHr(2) tid(1d770) 8007007A The data area passed to a system call is too small.
It seems that these are not really errors because the data is actually saved successfully but the messages are very annoying.
Steps to reproduce the bug
ApplicationData.Current.LocalSettings.Values
Expected behavior
There should be no error/warning in the output window in Visual Studio.
Screenshots
No response
NuGet package version
1.0.0
Packaging type
Packaged (MSIX)
Windows version
Windows 10 version 21H1 (19043, May 2021 Update)
IDE
Visual Studio 2022
Additional context
No response
The text was updated successfully, but these errors were encountered: