Print Page | Close Window

Multithreading and Printing

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2043
Printed Date: 22 Nov 24 at 6:33PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Multithreading and Printing
Posted By: tfrost
Subject: Multithreading and Printing
Date Posted: 17 Nov 11 at 1:07AM
I am encountering a variety of problems when trying to print separate documents concurrently to different printers in separate threads.  Is this supposed to work in v7 (with Delphi XE)?  If not, should it work in v8 (we have not upgraded this app yet).  And if still not, then should it be sufficient just to put the qp.PrintDocument inside a critical section, or would I need to do the whole create-load-print-free one at a time?



Replies:
Posted By: Ingo
Date Posted: 17 Nov 11 at 10:20PM
Hi!

As far as i know QP isn't threadsafe.
So check the returning value before running the next printerjob.
Other opinions?

Cheers, Ingo



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk