Print Page | Close Window

Multi-threaded

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=349
Printed Date: 22 Nov 24 at 6:58PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Multi-threaded
Posted By: bb46970
Subject: Multi-threaded
Date Posted: 06 Mar 06 at 2:57PM
Is printing with the TiSEDQuickPDF, Delphi component, multi-threaded safe?



Replies:
Posted By: JanN
Date Posted: 06 Mar 06 at 6:02PM
No, it is not. It uses the Printer object of Delphi, which seems to support only one print at time. When you try to use the PrintDocument function in several threads, you have to make it thread safe by yourself (CriticalSection for example). Otherwise exceptions are thrown.

I hope my description is sufficiant.


Posted By: bb46970
Date Posted: 07 Mar 06 at 12:51PM
Yup.  Thanks.  I figured that was probably the case, since it is a Delphi component.



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