CodingMoose ,
This only fixes it for people that are getting the error when closing the form, right?
I am having the same problem as DarshanManjunath - we're both getting this error when hitting tab while the pdf viewer has focus on the form.
Any idea how to avoid the error in this case? Thanks!
EDIT: I guess that was the case for the original post on this thread, sorry!
It uses the following code:
[System.Runtime.InteropServices.DllImport("ole32.dll")]
static extern void CoFreeUnusedLibraries();
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
if (axAcroPDF1 != null)
{
axAcroPDF1.Dispose();
System.Windows.Forms.Application.DoEvents();
CoFreeUnusedLibraries();
}
}
I used it, and found no errors :-)
This doesn't work for me. A working solution is over here:
http://stackoverflow.com/questions/1359616/axacropdflib-at-closing-pro blem-c
Bye
Stefan
North America
Europe, Middle East and Africa
Asia Pacific