Program locks up after printing

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

gpxi
User
Posts: 37
Joined: Mon Aug 23, 2010 6:41 am

Program locks up after printing

Post by gpxi »

Hi,

I ran into a strange problem. You should be able to duplicate it by following what I described below:

I was trying a sample program called "View" for VB. I enabled File toolbar after starting the app. Then using the file open button, I opened a multi-page pdf file. I then clicked print button. A dialog box opened with various parameter settings. Next I clicked Current page and then Print button. The page printed and the control returned to the main screen. However, it was locked up. The only way you can end it is to kill it via the task manager.

Was I doing something wrong? Or is it a bug?

Your help will be greatly appreciated!
besogerh
User
Posts: 1
Joined: Fri Sep 03, 2010 10:04 am

Re: Program locks up after printing

Post by besogerh »

Yes it´s a bug :(

please visit topic "Using ActiveX Control as capsuled Control"

mfg
Besold
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Program locks up after printing

Post by Stefan - PDF-XChange »

Besold has this topic in mind:
https://forum.pdf-xchange.com/ ... =36&t=8618

Best,
Stefan
gpxi
User
Posts: 37
Joined: Mon Aug 23, 2010 6:41 am

Re: Program locks up after printing

Post by gpxi »

Thank you Stefan and Besogerh for your speedy replies.

I did find a solution. What you can do is to drop a timer on the form, which checks to see if the form is disabled. If it is, then it enables it. By default the timer is off. Under the CoPDFXCview1_OnEvent, match nType = PXCVA_EventTypes.PXCVA_OnNamedNotify. And next if Name = "Global::EndModal", then turn the timer on. This event fires after the print action is done. The timer then keeps the program live.

Problem solved, at least one workaround you can try.
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7371
Joined: Wed Mar 25, 2009 10:37 pm

Re: Program locks up after printing

Post by Paul - PDF-XChange »

thanks gpxi for posting the work around.
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
gpxi
User
Posts: 37
Joined: Mon Aug 23, 2010 6:41 am

Re: Program locks up after printing

Post by gpxi »

I am glad that I found a way out and share it on the forum.

Interesting thing I noticed is that the bug only shows up in the initial run of the print function. The subsequent printing does not affect the program. I put a msgbox message prompt in the timer to show whenever the error is "corrected". Running the sample exe I observed that behavior of the control. Hopefully your dev team could use this piece of info if not already figured out a correction.

Please let us know if a new build without the bug is available. Thanks!
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7371
Joined: Wed Mar 25, 2009 10:37 pm

Re: Program locks up after printing

Post by Paul - PDF-XChange »

Hi gpxi,

this was fixed in build 55 which should be available for download Friday, unless any unexpected complications arise between now and then...

regards.
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Program locks up after printing

Post by John - Tracker Supp »

Hi,

This will be fixed in build 2.0055 released later this week :
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
gpxi
User
Posts: 37
Joined: Mon Aug 23, 2010 6:41 am

Re: Program locks up after printing

Post by gpxi »

Thanks! Your guys rock!
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: Program locks up after printing

Post by John - Tracker Supp »

;-)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com