Print Page | Close Window

Invalid license key

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: General Discussion
Forum Description: Discussion board for Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3434
Printed Date: 22 Nov 24 at 6:59PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Invalid license key
Posted By: skoschke
Subject: Invalid license key
Date Posted: 30 Jan 17 at 6:35AM
Hi,

my app works very well, but only in one device, a Samsung Tab 2 7" with Android 4.1.2 
i get "Invalid license key" when i try to create Debenu !

Any ideas what's wrong?

Regards
Stefan



Replies:
Posted By: Ingo
Date Posted: 30 Jan 17 at 7:23PM
Hi Stefan,

a code snippet to check your syntax would be great ;-)
What's the meaning of "i try to create debenu"?
There are different versions of the library.
For windows, android, and so on ...
Due to this i can imagine that each license key is only valid for one library version?



-------------
Cheers,
Ingo



Posted By: skoschke
Date Posted: 31 Jan 17 at 12:49PM
Here a few lines of code:

{$IFDEF ANDROID}
    SharedObjectFileName := TPath.Combine(TPath.GetDocumentsPath,
      'libDebenuPDFLibraryAndroidArm1311.so');
    if fileexists(SharedObjectFileName) = False then
      Showmessage('*.SO-File missing!');
    PDFLibrary := TDebenuPDFLibraryCPAndroidDelphi1311.Create
      (SharedObjectFileName);
    key := GetPDFKey(); //geting my key, stored in a special path
{$ENDIF}
{$IFDEF  MSWINDOWS}
    PDFLibrary := TDebenuPDFLibrary1311.Create;
    key := GetPDFKey();
{$ENDIF}
    UnlockResult := PDFLibrary.UnlockKey(key);

    if UnlockResult <> 1 then
      Showmessage('Invalid License Key !');

At the special device UnlockResult = 0 and i don't know why :-(((

This code works with all Windows and Android devices, only the ode will not work!
The user has set his Tablet to factory default and the problem is always ...

Ciao
Stefan


Posted By: skoschke
Date Posted: 02 Feb 17 at 11:13AM
Hi,


in the meantime i have moved on and found that the library is not loaded! Even when the library is not loaded, unlockkey result = 0 (like bad license key). What could be the cause?

Ciao
Stefan


Posted By: Ingo
Date Posted: 03 Feb 17 at 5:44PM
Hi Stefan,

you should check the resulting value from loadfromfile.
There'll be the first error.
Using unlock will only raise a following error.
Using unlock without loading returns with 0 (nothing) - this should be normal behavior?



-------------
Cheers,
Ingo




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