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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disposing images

Thread ID:





79225 Jan 26,2009 07:50 AM UTC Jan 30,2009 09:47 AM UTC WinForms 1
Tags: DocIO
Administrator [Syncfusion]
Asked On January 26, 2009 07:50 AM UTC

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() ?


Bhuvaneswari P [Syncfusion]
Replied On 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:

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

Please let me know if you have any other questions.

Best Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon