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!
Invalid license key |
Post Reply |
Author | |
skoschke
Team Player Joined: 11 Jan 17 Status: Offline Points: 33 |
Post Options
Thanks(0)
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
|
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
skoschke
Team Player Joined: 11 Jan 17 Status: Offline Points: 33 |
Post Options
Thanks(0)
|
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 |
|
skoschke
Team Player Joined: 11 Jan 17 Status: Offline Points: 33 |
Post Options
Thanks(0)
|
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 |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store