-
Notifications
You must be signed in to change notification settings - Fork 708
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
Random 'cannot access disposed object' when using custom loaded image #3857
Comments
Maybe not. The exception call stack is totally native. No managed exception incurred here. Edit: |
Further information: If I change the call to synchronized Projected .NET stream with It seems to be caused by the source stream containing corrupt image. (NOT confirmed - seems wrong) |
Whether .NET or WinRT stream passed into it can cause different exceptions. This indicates a CsWinRT issue. Moving to them. |
No longer reproduces when updating to latest CsWinRT. |
Describe the bug
I'm using
BitmapSource.SetSourceAsync
to load images, because the loading requires authorizing so that cannot be achieved byUriSource
.The image is used in a virtualized GridView.
Loading code snippet:
Throwing call stack:
I cannot find anything useful here.
If the application is launched with debugger, the exception will be ignored. One image control which seems triggers the exception will be empty.
If the application is launched without debugger, it will crash.
The text was updated successfully, but these errors were encountered: