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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - CoInitialize Error
  FAQ FAQ  Forum Search   Register Register  Login Login

CoInitialize Error

 Post Reply Post Reply
Author
Message
satenderk View Drop Down
Beginner
Beginner


Joined: 22 Nov 11
Location: Pune
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote satenderk Quote  Post ReplyReply Direct Link To This Post Topic: CoInitialize Error
    Posted: 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
satenderk View Drop Down
Beginner
Beginner


Joined: 22 Nov 11
Location: Pune
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote satenderk Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
satenderk View Drop Down
Beginner
Beginner


Joined: 22 Nov 11
Location: Pune
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote satenderk Quote  Post ReplyReply Direct Link To This Post Posted: 22 Nov 11 at 12:56PM
Thanks a lot.
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store