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 > General Discussion
  New Posts New Posts RSS Feed - Invalid license key
  FAQ FAQ  Forum Search   Register Register  Login Login

Invalid license key

 Post Reply Post Reply
Author
Message
skoschke View Drop Down
Team Player
Team Player


Joined: 11 Jan 17
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote skoschke Quote  Post ReplyReply Direct Link To This Post Topic: Invalid license key
    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
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: 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

Back to Top
skoschke View Drop Down
Team Player
Team Player


Joined: 11 Jan 17
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote skoschke Quote  Post ReplyReply Direct Link To This Post 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


Edited by skoschke - 31 Jan 17 at 12:52PM
Back to Top
skoschke View Drop Down
Team Player
Team Player


Joined: 11 Jan 17
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote skoschke Quote  Post ReplyReply Direct Link To This Post 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


Edited by skoschke - 02 Feb 17 at 11:14AM
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: 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

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