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.
Unfortunately, activation email could not send to your email. Please try again.

Disposing images

Thread ID:

Created:

Updated:

Platform:

Replies:

79225 Jan 26,2009 02:50 AM Jan 30,2009 04:47 AM Windows Forms 1
loading
Tags: DocIO
Administrator [Syncfusion]
Asked On January 26, 2009 02:50 AM

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


Bhuvaneswari P [Syncfusion]
Replied On January 30, 2009 04:47 AM


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



CONFIRMATION

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.

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.

;