PXCV_DrawPageToDC error code

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

coke
User
Posts: 1
Joined: Wed Jan 07, 2009 9:24 pm

PXCV_DrawPageToDC error code

Post by coke »

Greetings,

In my main drawing routine a call to PXCV_DrawPageToDC is returning an error code of 82030011. The error routines return the following:
PXCV_Err_FormatFacility: ImagesCore
PXCV_Err_FormatSeverity: Error
PXCV_Err_FormatErrorCode: Internal error

A call to PXCV_DrawPageToDC elsewhere in the application with the same PDF file (in a dialog displaying thumbnails of the PDF pages) is successful.

The application is built with VC++ 6.0 using MFC and the PDF-XChange Viewer Simple Library DLL v.2.00407

Oddly the call works in Debug and Release With Symbols builds but not in our Release build. Even stranger if I add a local CString variable in the same scope as the call to PXCV_DrawPageToDC the Release build also works!! I'm guessing there is some sort of memory corruption going on but was wondering if the error code provides any clue?

Thanks,

Chris
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: PXCV_DrawPageToDC error code

Post by Lzcat - Tracker Supp »

I'm afraid that we cannot help without sample code which reproduces the problem - in a normal situation you should never get this error code.

Looks like you are right about a possible memory overwrite, but again, we need a sample to reproduce and investigate the problem.

You may attach it to message in forum, private message or send using e-mail to lazycat@tracker-software.com - but if attching to a forum message - please remove any license info from your project and zip any files sent.

thanks
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.