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 - TQuickPDF.Create crash if CoInitialize not called
  FAQ FAQ  Forum Search   Register Register  Login Login

TQuickPDF.Create crash if CoInitialize not called

 Post Reply Post Reply
Author
Message
TJoe(J^) View Drop Down
Beginner
Beginner
Avatar

Joined: 25 May 11
Location: Florida
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote TJoe(J^) Quote  Post ReplyReply Direct Link To This Post Topic: TQuickPDF.Create crash if CoInitialize not called
    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.

Back to Top
TJoe(J^) View Drop Down
Beginner
Beginner
Avatar

Joined: 25 May 11
Location: Florida
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote TJoe(J^) Quote  Post ReplyReply Direct Link To This Post Posted: 21 Nov 11 at 4:12AM
Not all programming languages might support this workaround.
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 21 Nov 11 at 8:53AM
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
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: 21 Nov 11 at 12:28PM
I have passed this onto the developers and hopefully we can find a quick fix for the 8.13 release.
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:08AM
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