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);
}
PDF Viewer causes MFC application to crash
Re: PDF Viewer causes MFC application to crash
After upgrading from 3.02 to 3.03, the problem goes away. Thank you, Amyuni Support Team