AccessViolationException after effect has been applied

Aug 15, 2010 at 3:17 PM
Hello. Hope someone can clear things up for me. I'm using the SL Blend effects library. When trying to create a Writeablebitmap from an Image object who has an effect applied, I receive an exception : AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory has been corrupted. This is the code: //Effect init code here. Image image = new Image(); image.Source = new WriteableBitmap(new Bitmap(new Uri(...))); imagen.Effect = myEffect; WriteableBitmap wb = new WriteableBitmap(imagen, null); <--Exception I don't know if anything can be done. Any help would be appreciated.