Believe it or not, yesterday I hit my head about this same problem, and here is the solution I found. Add to event FormClosed:
[DllImport("ole32.dll")]
private static extern void CoFreeUnusedLibraries();
private void MainForm_FormClosed(object sender, FormClosedEventArgs e)
{
base.OnFormClosed(e);
webBrowser1.Visible = false;
while (webBrowser1.IsBusy)
{
Application.DoEvents();
}
webBrowser1.Dispose();
CoFreeUnusedLibraries();
}
In fact, it seems that an error in Adobe Acrobat 9.x raises this exception.