Print Page | Close Window

CoPDFLibrary.Create Hanging

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3506
Printed Date: 02 May 24 at 6:25AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: CoPDFLibrary.Create Hanging
Posted By: morganl87
Subject: CoPDFLibrary.Create Hanging
Date Posted: 21 Sep 17 at 3:11PM
Hi,

I'm using Delphi Berlin and I've downloaded QuickPDFLite1114.  I've registered the DLL, added the Type Library, and now I'm trying to use it.  I've added DebenuPDFLibraryLite1114_TLB to my 'uses' and declared the variable PDFLib : PDFLibary.

When I execute PDFLib := CoPDFLibrary.Create it hangs until I force quit.  I swear I got it to work once, but since then I've been having problems. Any ideas?

Thanks,
Morgan



Replies:
Posted By: morganl87
Date Posted: 22 Sep 17 at 1:38PM
Just in case anyone has this problem in the future, here was the issue:
There is a call in my application that sets Math.SetRoundMode(rmUp).  CreateOleVariant doesn't like this apparently.  As soon as I set it back to the default, Math.SetRoundMode(rmNearest), tada!  It works perfectly.  I just hope no one else has to go through that debugging process.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk