-
Notifications
You must be signed in to change notification settings - Fork 104
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
Exception on trying to read string value #278
Comments
Debugging, looks like a refcount issue with the HSTRING held by m_sourceType.m_typeName.Name. The m_sourceType held by the first PropertyProviderPropertyAccess instance created is ultimately the one involved with the crash. Couldn't find any problems with TypeNamePtr, but the problem may be upstream from that. |
@ojhad This looks to have been a WinUI issue, as I can no longer repro with a newer version (3.0.0-preview2.200713.0). I'll leave open for a few days if you want to confirm. |
@Scottj1s This still repros; I've been able to repro it consistently using the Desktop Xaml Controls Gallery on Preview 3.
|
@alwu-msft, yes this issue was ultimately fixed, but didn't make it into WinUI 3 Preview 3. It was published with cswinrt 1.1.0, PR 551. |
Here is a repro project. Keep changing the combobox selection using the keyboard arrow keys. After a little bit
WindowsCompareStringOrdinal
will throw an exception when passing in a string value that is being retrieved from managed code. Screenshot of the stack is below:The text was updated successfully, but these errors were encountered: