Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
[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 🙂
Copy link to clipboard
Copied
This doesn't work for me. A working solution is over here:
http://stackoverflow.com/questions/1359616/axacropdflib-at-closing-problem-c
Bye
Stefan