Aspose.Powerpoint holding lock on image?

Hi

I have added a picture to a Powerpoint diagram via the Pictures.Add method, and am finding that aspnet_wp.exe is still holding a lock on this image.

The code which adds the image is very simple;



int picid = _presentation.Pictures.Add(new Picture(_presentation,
System.Web.HttpContext.Current.Request.ServerVariables[“APPL_PHYSICAL_PATH”]
+ “/” + ConfigurationSettings.AppSettings[“PptImageFolder”] + “/” +
strPic));

pf.PictureId = picid;



The error I’m receiving is;

The process cannot access the file
“C:\Inetpub\wwwroot\AppInfo\Attachments\20050121195355.SA54&OI_ContextDiagram.GIF”
because it is being used by another process.


Has anyone encountered this before and is anyone aware of a way to ensure ASPNET will release the lock on the image? Thanks.

Shaune



Dear Shaune,

Did you install last hot fixes? I’m not sure about ASP.Net but normal applications don’t lock
image files forever after 1.6.1 hot fix.