Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
DARenderPageToDC() slowing down form processing. |
Post Reply |
Author | |
Roulette
Beginner Joined: 26 Mar 10 Status: Offline Points: 6 |
Post Options
Thanks(0)
Posted: 06 Jun 10 at 11:47PM |
I am using QuickPDF's DARenderPageToDC() function in a background thread in a form-based application. I have tried setting the background thread to ThreadPriority.Lowest. Despite that, when QuickPDF is rendering (to an HDC that is never displayed) processing events on the form becomes very sluggish, often taking over a second to register things like button clicks or moving the form to a new location on the screen.
I am on an Intel i5 750 (2.67 GHz quad-core) and there are no other background threads running. If I disable the single DARenderPageToDC() line (and leave in the rest of what happens in the background thread such as opening the PDF, retrieving the number of pages, saving the image via a custom function, etc.) the form registers events as quickly as you would expect.
Any ideas as to how to use DARenderPageToDC() in a way that is more friendly in a multi-threaded application? I'm assuming that function must be multi-threaded? Can someone confirm that and, if so, what priority are its child threads?
- Roulette
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store