axAcroPDFLib at closing problem C#

Posted by Hector on Stack Overflow See other posts from Stack Overflow or by Hector
Published on 2009-08-31T22:06:11Z Indexed on 2010/03/16 13:46 UTC
Read the original article Hit count: 722

Filed under:
|
|

Im using a axAcroPDFLib control taken from a Adobe Reader 9 installation to show and print user PDF documents within my C# window forms application. Everything works just fine untill the appication close...

It throws the following error:

The instruction at "0x0700609c" referenced memory at "0x00000014". The memory could not be read

My FormClosing method is quite simple and i think is wrong, but i didn't know how to do it in the right way:

private void Form2_FormClosing(object sender, FormClosingEventArgs e)
    {
        if (axAcroPDF1 != null)
        {   
            axAcroPDF1.Dispose();

        }
    }

thanks in advance for any idea

© Stack Overflow or respective owner

Related posts about c#

Related posts about axacropdf