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!
![]() |
CoInitialize Error |
Post Reply
|
| Author | |
satenderk
Beginner
Joined: 22 Nov 11 Location: Pune Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Topic: CoInitialize ErrorPosted: 22 Nov 11 at 6:12AM |
|
Hi,
I am using quickpdf Active-x with PHP and sometimes I am getting the error like Uncaught exception 'com_exception' with message 'Failed to create COM object 'QuickPDFAX0718.PDFLibrary':CoInitialize has not been called.' in. The code I am using is as follow: $this->objqp = new COM("QuickPDFAX0718.PDFLibrary"); $qpkey = $this->objqp->UnlockKey("*****************"); Please told me the appropriate solution for that.
Edited by satenderk - 22 Nov 11 at 6:16AM |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 Nov 11 at 7:14AM |
|
Hi!
You don't read other posts...? ;-)
http://www.quickpdf.org/forum/tquickpdfcreate-crash-if-coinitialize-not-called_topic2049.html If you're using Google with this string "CoInitialize has not been called" you'll get the answer immediately: Call CoInitialize when your program starts and CoUnitialize when it terminates. It depends on your programming language... in C++ it should be in InitInstance and ExitInstance. BTW: You should update at least to last 7-version 7.26 or try the newest 8-beta soon where the "CoInitialize-behavior" will be fixed. Cheers and welcome here,
Ingo |
|
![]() |
|
satenderk
Beginner
Joined: 22 Nov 11 Location: Pune Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 Nov 11 at 7:57AM |
|
Yes I read the previous post ?
But I was not finding any solution for that. Thank for reply
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 Nov 11 at 12:54PM |
|
Hi!
So you know what to do.
Use the co-syntax and it will run as you want it.
And up from the newest 8.xx beta you won't have to care about these issues ;-)
Cheers, Ingo
|
|
![]() |
|
satenderk
Beginner
Joined: 22 Nov 11 Location: Pune Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 Nov 11 at 12:56PM |
|
Thanks a lot.
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 Dec 11 at 1:07AM |
|
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