PDF Viewer causes MFC application to crash

If you are a C/C++/C# developer and have any questions about using our products from your application here is the place to post them.
Post Reply
wd818
Posts: 22
Joined: Tue Oct 14 2008

PDF Viewer causes MFC application to crash

Post by wd818 »

I have an MFC application that contains a PDF viewer inside a CDialog. It views all other PDF files fine, except for one particular PDF file. Whenever that PDF file is opened to view a second time, the line m_pdf.put_CurrentPage(1) throws an access viloation exception. After catching that exception, the MFC application crashes. Can someone help me?

The way I open a PDF file in my source code is as follows

m_pdf.Open( strURL, NULL);

m_pdf.put_RulerSize( 0);

m_pdf.put_ZoomFactor( 100);

if( m_pdf.get_PageCount())
{

m_pdf.put_CurrentPage( 1);

}
wd818
Posts: 22
Joined: Tue Oct 14 2008

Re: PDF Viewer causes MFC application to crash

Post by wd818 »

After upgrading from 3.02 to 3.03, the problem goes away. Thank you, Amyuni Support Team
Post Reply