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!
QuickPDF with TPL |
Post Reply |
Author | |
i.collodoro
Beginner Joined: 20 Apr 11 Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 20 Apr 11 at 4:11PM |
Hello,
i'm trying to read a huge file with almost 12000 pages and i need to performe text search on it. i've tried reading page by page but it tooks about 15 minutes. I tried to use
Parallel.For(0,pageCount,(i)=>{ qp.SelectPage(i);
s = qp.GetPageText(3)}); { if (dll == null) return ""; else { IntPtr data = dll.QuickPDFGetPageText(instanceID, ExtractOptions); int size = dll.QuickPDFStringResultLength(instanceID); byte[] result = new byte[size]; Marshal.Copy(data, result, 0, size); return Encoding.UTF8.GetString(result); } } but i receive a Corrupted Memory Exception
IntPtr data = dll.QuickPDFGetPageText(instanceID, ExtractOptions);
Is QuickPDF tread safe?
Thanks!
|
|
Rowan
Moderator Group Joined: 10 Jan 09 Status: Offline Points: 398 |
Post Options
Thanks(0)
|
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".
|
|
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