Print Page | Close Window

Thread safe?

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=1193
Printed Date: 23 Nov 24 at 7:34AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Thread safe?
Posted By: Tony63
Subject: Thread safe?
Date Posted: 31 Aug 09 at 1:57PM
I'm evaluating the Delphi version of QuickPDF. Is the library thread-safe?. Can I use it in a multithreaded server?



Replies:
Posted By: hbarclay
Date Posted: 02 Sep 09 at 3:37PM
I don't know the answer to your question, it would be good to have a definitive answer from someone who knows. I do see two references to threading in the help file for Encrypting & Decrypting files.

"The progress of the decryption can be monitored by checking the size of the destination file in a separate thread."


Posted By: Rowan
Date Posted: 03 Sep 09 at 2:13PM
Hi Guys,

Usually when the phrase "thread safe" is used it means that the same instance of the library can be accessed by different threads at the same time. This means that Quick PDF Library is not thread safe because a single instance of Quick PDF Library can only be accessed by the thread that created the instance. 

However, Quick PDF Library can be used in a multithreaded environment so long as a separate instance of the library is created by each thread.

For users of the ActiveX edition of the library, please note that this version has been compiled with the threading mode set to "single threaded apartment".

I hope this helps clear things up. Let me know if you need any further clarification.

Cheers,
- Rowan.



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