View Issue Details

IDProjectCategoryView StatusLast Update
0000835SkyChart1-Softwarepublic14-03-29 17:55
ReporterBob Harris Assigned ToPatrick Chevalley  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformHP LaptopOSW7 64 Bit 
Product Version3.3 SVN 
Target Version3.10Fixed in Version3.9 SVN 
Summary0000835: All print functions blocked when print preview was added
DescriptionAfter the addition of Print Preview, when selecting any print, print preview, or printer setup in my W7 64 bit HP laptop, the funcion is blocked with the following error message:

>CreateDC Exception:"Control-C hit" (Error: The operation completed successfully. ", DC=0 Driver=hp psc 1200 series" Device="hp pac 1200 series (Copy 2)" Port= USB001").

As suggested in Note 1317, I closed CDC and accessed the printer properties through the control panel and switched to the Microsoft XPS Document Writer. I then reopened CDC (64bit W7) and repeated the test. The print preview worked fine and printed to good XPS file.

This problem does not occur on my XP Desktop or my 32 Bit W7 Netbook. So I guess that the problem is with the HP software vs. CDC on the 64bit W7 operating system.

Please Help.
TagsNo tags attached.

Relationships

related to 0000750 closedPatrick Chevalley Impression non fonctionnelle 
related to 0000690 closedPatrick Chevalley Printer Error Message 
child of 0000858 resolvedPatrick Chevalley Problems that prevent the release of a stable Win64 build 

Activities

Patrick Chevalley

11-05-25 09:59

administrator   ~0001619

Can you try to update the HP driver from :
http://h20000.www2.hp.com/bizsupport/TechSupport/ProductList.jsp?lang=en&cc=us&prodTypeId=18972&prodSeriesId=90763&taskId=135

Because of the way the HP install wizard work I cannot install this driver for testing without having a real printer connected to my computer.

Patrick Chevalley

11-06-29 09:14

administrator   ~0001657

Hi Bob,
Finally get some time to return to your problem.
Can you download this file that contain a test program for printer selection:
http://www.ap-i.net/pub/tmp/selectprinter.zip

Extract the zip and launch selectprinter.exe (it work only on Windows 64bit)

Try the different button, mainly "execute TPrinterSetupDialog" and "execute TPrintDialog".
Report any error message you get.

Guillermo Abramson

11-07-27 19:12

reporter   ~0001665

Last edited: 11-07-27 19:27

Hi, Patrick. I am also experiencing this error. I have tried your selectprinter program, with the following result (see at the end for more comments):

On running selectprinter.exe: Error message CreateDC Exception: etc (related to my HP Photosmart). OK? OK to it. Form 1 opens.

Execute TPageSetupDialog: Error: An unhandled exception occurred at $00...: EAccesssViolation:Access violation $... (10+ times in several error windows). The program closes.

Execute TPrinterSetup Dialog: Short delay. Windows message that selectprinter has stopped working. Close the program. It doesn't close. So press another button.

Execute TprintDialog: Print Dialog opens (in the background, I almost miss it). Seems normal behavior.

Get default printer info: CreateDC Exception etc error. OK or Cancel? OK

Update Printer state info: CreateDC Exception etc error. OK? (just OK). OK.

Show printer properties: Error message: Control-C hit (<- that's the message). OK or Cancel? OK.

Print Test: CreateDC Exception error. OK? OK.

If I choose another default printer (such as PDFCreator, for example), printing functions work correctly. If I choose the HP Laserjet P2055dn which is down the corridor, it also works. So it seems relted to *some* HP printers...

My system:
Windows 7 Ultimate SP1 x64
HP Photosmart 4700 (driver 70.91.312.0, I'm not sure this is the driver version)
Cartes du Ciel 3.3 SNV 1794 x64 snapshot

Patrick Chevalley

11-07-28 08:46

administrator   ~0001666

Hi Guillermo,

Thank you for your testing.
This confirm the problem is within the Lazarus library and not specific to Skychart.
I will open a bug report to Lazarus for that, but this may take a long time to be solved if it require a Lazarus developer to use a specific HP printer on Win64.

Can you try now to uninstall skychart x64 and reinstall the x86 version (skychart-3.3-1794-windows.exe) and tell me if the printer work in this case.

Guillermo Abramson

11-07-28 14:59

reporter   ~0001667

Done. Uninstalled x64, installed x86. All print functions work fine with skychart-3.3-1794 x86 under Windows 7 Ultimate SP1 x64, even when default printer is HP Photosmart C4700.

Now I mus reconfigure Cartes, grrrr!

Patrick Chevalley

11-07-29 08:35

administrator   ~0001669

OK, so this is the solution for now.

I will not release a win64 version for the next 3.4, but keep it in beta.

0000858 refer to all the blocking problem with the win64 version.

Patrick Chevalley

13-05-04 17:17

administrator   ~0002521

I try with last version 3.9 and HP8600 printer without any problem.

I close for now but you can reopen in case of problem with the HP1200.

Issue History

Date Modified Username Field Change
11-05-05 21:36 Bob Harris New Issue
11-05-25 09:16 Patrick Chevalley Assigned To => Patrick Chevalley
11-05-25 09:16 Patrick Chevalley Status new => assigned
11-05-25 09:16 Patrick Chevalley Target Version 0.3.0 => 3.4
11-05-25 09:52 Patrick Chevalley Relationship added related to 0000690
11-05-25 09:59 Patrick Chevalley Note Added: 0001619
11-05-25 09:59 Patrick Chevalley Status assigned => feedback
11-06-29 09:14 Patrick Chevalley Note Added: 0001657
11-06-29 09:14 Patrick Chevalley Relationship added related to 0000750
11-07-27 19:12 Guillermo Abramson Note Added: 0001665
11-07-27 19:16 Guillermo Abramson Note Edited: 0001665
11-07-27 19:27 Guillermo Abramson Note Edited: 0001665
11-07-28 08:46 Patrick Chevalley Note Added: 0001666
11-07-28 14:59 Guillermo Abramson Note Added: 0001667
11-07-29 08:31 Patrick Chevalley Relationship added child of 0000858
11-07-29 08:35 Patrick Chevalley Note Added: 0001669
11-07-29 08:35 Patrick Chevalley Status feedback => confirmed
11-07-29 08:37 Patrick Chevalley Target Version 3.4 => 5.0
13-05-04 17:17 Patrick Chevalley Note Added: 0002521
13-05-04 17:17 Patrick Chevalley Status confirmed => resolved
13-05-04 17:17 Patrick Chevalley Resolution open => fixed
13-05-04 17:17 Patrick Chevalley Fixed in Version 0.3.0 => 3.9 SVN
13-05-04 17:17 Patrick Chevalley Target Version 5.0 => 3.10
14-03-29 17:55 Patrick Chevalley Status resolved => closed