0

Ok so I have an application that makes heavy use of WriteableBitmap via the WriteableBitmapEx open source library. Sometimes, rarely (and not sure the exact conditions to cause), calling WriteableBitmap.Lock() throws an AccessViolationException.

The calling code to .Lock() only ever locks the bitmap if it has not already been locked. Many locks/unlocks can be called in quick succession but never in the pattern lock-lock-unlock, only ever lock-unlock-lock-unlock. I can confirm the

Any ideas what is causing this? There seems to be nothing on MSDN to suggest that WriteableBitmap.Lock() should throw an AccessViolationException!

enter image description here

Dr. Andrew Burnett-Thompson
  • 20,980
  • 8
  • 88
  • 178

0 Answers0