Print Page | Close Window

PDFLibrary crashes in constructor

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=1959
Printed Date: 20 Jan 26 at 8:42PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PDFLibrary crashes in constructor
Posted By: ctodor
Subject: PDFLibrary crashes in constructor
Date Posted: 15 Sep 11 at 12:06PM
Hi,
Ive just download the latest trial version (QuickPDFDLL0811) from your site and I'm trying to use it in some C# application. Unfortunately app. crashes when I try to instantiate PDFLibrary. As far as I saw it seems LoadLibrary failed to load the dll.

Also LoadLibrary fct. call from "my code" failed, the error returned by Marshal.GetLastWin32Error() is
1008 (ERROR_NO_TOKEN).

I'm using VS 2008, Windows7, SP1

Thanks.
Cosma




Replies:
Posted By: ctodor
Date Posted: 15 Sep 11 at 12:07PM
Forgot to mention: previously I've used your lite version and it didn't crash.


Posted By: AndrewC
Date Posted: 20 Sep 11 at 4:17PM
Have you managed to get this working yet ?

Are you using the 

1. Lite version  (ActiveX) or
2. DLL Version or
3. ActiveX Version ?

There may be a problem with the ActiveX with 8.11 that we are still investigating.  
One person has reported that they need to now call CoIntialize(NULL) with the ActiveX version.

I am not having any problems with QPL811 DLL version with C# and VS2010.

Maybe you could post a small sample of your code.



Posted By: ctodor
Date Posted: 20 Sep 11 at 7:35PM
I'm using the dll version and I've found the issue. I used "Any CPU" config., switching to x86 config. fix the issue. Thx you ask.

Cosma


Posted By: AndrewC
Date Posted: 21 Sep 11 at 6:39AM
Good to hear you have found the problem.  Forgetting to set the Target Platform to x86 is a common issue I will make a recommendation that the documentation clearly mentions this in future.





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