Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TidyManaged not releasing libtidy.dll #9

Open
paully21 opened this issue Aug 27, 2014 · 1 comment
Open

TidyManaged not releasing libtidy.dll #9

paully21 opened this issue Aug 27, 2014 · 1 comment

Comments

@paully21
Copy link

Even if I use TidyManaged.Document in a using block, the handle to libtidy.dll is not released.

I am using this on an Azure website and when I try to publish the site, I get an error that the file libtidy.dll is locked by an external process.

Here is a code snippet of our usage

using (Document doc = Document.FromString(body))
{
doc.ShowWarnings = false;
doc.Quiet = true;
doc.OutputXhtml = true;
doc.IndentBlockElements = AutoBool.Yes;
doc.IndentAttributes = false;
doc.IndentCdata = true;
doc.AddVerticalSpace = false;
doc.WrapAt = 120;
doc.DocType = DocTypeMode.Omit;
doc.OutputBodyOnly = AutoBool.Yes;
doc.PreserveEntities = true;
doc.CleanAndRepair();
model.Body = doc.Save();
model.Status = "Success";
return Json(model);
}

@staplespeter
Copy link

staplespeter commented Mar 15, 2017

I also experience this. I copied the readme example into a VS unit test project with libtidy.dll added to the project and set to CopyAlways. It will copy on the first build and execute of the test but subsequent cleans and build do not delete or copy until VS is restarted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants