Print Page | Close Window

Error in QUICKPDFLIB0813_DllMain

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=2135
Printed Date: 01 Jul 25 at 7:39AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Error in QUICKPDFLIB0813_DllMain
Posted By: Snowfox
Subject: Error in QUICKPDFLIB0813_DllMain
Date Posted: 08 Feb 12 at 4:27PM
Hi

We bought a QuickPDF-license and we'd like to include the QuickPDF-functions in our Wrapper-DLL which we us as an extension for our development environment (Sybase Powerbuilder 11.5) I inlcuded the QuickPDF statically with the provided LIB-file with all it's dependencies and ressources and it compiles and links without errors. But at run-time I get the following error:

An exception has occurred at 0x77aeb812 in PB115.EXE: 0xC0000005: access violation while writing at position 0x00090f30.

This error fires when the bold line with the QUICKPDFLIB0813_DllMain function is executed:

CPDF::CPDF(IPB_Session *session) :  CBase(session),
                                    m_instanceID(0)
{
    try {
        QUICKPDFLIB0813_DllMain(GetModuleHandle(NULL), DLL_PROCESS_ATTACH, NULL);
        this->m_instanceID = QuickPDFCreateLibrary();
    }
    catch (...) {
        //...
    }
}

In the Getting Started Guide of the LIB-Edition is written, that "The LIB Edition of Quick PDF Library is generated automatically by converting the DLL Edition into a static link library." 
Maybe there is a problem when I include the quick-pdf LIB in a dll? 

What exactly does the QUICKPDFLIB0813_DllMain-Function? When I omit it, the following call to QuickPDFCreateLibrary() won't work neither.

QuickPDF-Version: 8.13
QuickPDF-Edition: LIB

Thanks in advance for any help!




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