We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Disposing images

Hi everybody !

Disposing inserted images before saving a document causes an exception. Are images automatically disposed? Or is it necessary to run through the document and check each Paragraphitem for the EntityType.Picture and then disposing the images with Picture.Image.Dispose() ?

Thanks


1 Reply

BP Bhuvaneswari P Syncfusion Team January 30, 2009 09:47 AM UTC


Hi Johannes,

Thank you for your interest in Syncfusion products.

I am able to reproduce the issue "when disposing the image before document save, throwing an exception". The issue reported by you is suspected to be a defect. We have forwarded this to our Development Team for further analysis. We will update you with our Development Team’s response in two business days.

As of now please close the images after document save like below code snippet:

document.Save("Sample.doc");
pic.Image.Dispose();//Will dispose only this object
//or
document.Close();// will release all resources used by this object


Please let me know if you have any other questions.

Best Regards,
Bhuvana



Loader.
Live Chat Icon For mobile
Up arrow icon