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!
TQuickPDF.Create crash if CoInitialize not called |
Post Reply |
Author | |
TJoe(J^)
Beginner Joined: 25 May 11 Location: Florida Status: Offline Points: 7 |
Post Options
Thanks(0)
Posted: 21 Nov 11 at 4:09AM |
TQuickPDF.Create crash if CoInitialize not called:
QuickPDF Verison: 8.12 Issue: TQuickPDF.Create blows chunks if called from an application that does not first call CoInitialize(), raising an EOleSysError "CoInitialized has not been called" exception. Cause: The latest versions of the QuickPDF library calls CreateOleObject() and makes an assumption that the calling application will make the calls to CoInitialize() and CoUninitialize() in behalf of the library. Previous QuickPDF versions (7) seem unaffected. Replication: Call TQuickPDF.Create from any application where CoInitialize() has not first been called. Delphi 6 example: program Project1; uses QuickPDF; var FPdfEngine : TQuickPDF; begin // CoInitialize(nil); FPdfEngine := TQuickPDF.Create; try FPdfEngine.Free; except end; // CoUninitialize(); end. Workaround: Call CoInitialize() before using the QuickPDF library and call CoUninitialize() after its use. |
|
TJoe(J^)
Beginner Joined: 25 May 11 Location: Florida Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Not all programming languages might support this workaround.
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi Joe!
I didn't check this out but if you're right you should post this to the official support pages, too.
Cheers, Ingo
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
I have passed this onto the developers and hopefully we can find a quick fix for the 8.13 release.
|
|
AndrewC
Moderator Group Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
|
We have added a whole lot of code to the 8.14 beta 1 release that should overcome the the CoInitialize problem. Beta testers are very welcome.
http://www.quickpdflibrary.com/blog/2011/12/quick-pdf-library-8-14-beta-1-released/ Andrew.
|
|
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