Hi,
We have a problem with Aspose.Slides 17.3.0.0.
The problem is not easy to isolate. We run a lot of code basically generating a PowerPoint document on the fly.
The error occurs when we have 3 users trying to generate a PowerPoint document at the same time.
The error is always the same “Attempted to read or write protected memory. This is often an indication that other memory is corrupt.”, but it appears either in
ShapeCollection.UpdateSelectedValue() or in Aspose.Cells.Drawing.Picture.ToImage()
These are the errors
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Drawing.SafeNativeMethods.Gdip.GdipFillPath(HandleRef graphics, HandleRef brush, HandleRef path)
at System.Drawing.Graphics.FillPath(Brush brush, GraphicsPath path)
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( )
at . ( , Stream , , ImageOrPrintOptions )
at . (Int32 , Stream , ImageOrPrintOptions )
at . (Int32 , ImageOrPrintOptions , Stream )
at Aspose.Cells.Drawing.Shape.UpdateSelectedValue()
at Aspose.Cells.Drawing.ShapeCollection.UpdateSelectedValue()
System.AccessViolationException was unhandled
HResult=-2147467261
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=System.Drawing
StackTrace:
at System.Drawing.SafeNativeMethods.Gdip.IntGdipDisposeImage(HandleRef image)
at System.Drawing.Image.Dispose(Boolean disposing)
at System.Drawing.Image.Dispose()
at . ()
at . ()
at . ()
at . (ImageOrPrintOptions , Shape )
at Aspose.Cells.Drawing.Picture.ToImage(ImageOrPrintOptions createImageOptions)
Can you provide a solution please?
Thank you in advance