Quantcast
Channel: WriteableBitmapEx
Viewing all articles
Browse latest Browse all 360

Created Unassigned: Resize throws System.AccessViolationException [21885]

$
0
0
I am trying to resample ~6MB images in a Universal App using WriteableBitmapEx. After loading the image using SetSource() I call Resize(NearestNeighbor), which always throw a System.AccessViolationException involving {System.Collections.ListDictionaryInternal}.

Here is additional information regarding the exception:

System.AccessViolationException was unhandled by user code
HResult=-2147467261
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=WriteableBitmapEx.WinRT
StackTrace:
at Windows.UI.Xaml.Media.Imaging.BitmapContext.CopyPixels()
at Windows.UI.Xaml.Media.Imaging.BitmapContext..ctor(WriteableBitmap writeableBitmap, ReadWriteMode mode)
at Windows.UI.Xaml.Media.Imaging.WriteableBitmapExtensions.Resize(WriteableBitmap bmp, Int32 width, Int32 height, Interpolation interpolation)
<snip>
InnerException:

Any help towards solving this will be greatly appreciated.

Viewing all articles
Browse latest Browse all 360

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>