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.
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.