Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem!: result differenct in Visual Studio Debug and Release configuration #26

Open
bladewhistle opened this issue Oct 26, 2020 · 0 comments

Comments

@bladewhistle
Copy link

bladewhistle commented Oct 26, 2020

Hi, I tried to compile and use this library and found the result in debug and release are different, both for generating license or loading license. It can be reproduce by run the lickey_test application (of course I need to change the test code to use the same key which license is generated. the license expired as expected, but the license can be loaded in debug mode but failed in release)

the message below:
In Release mode:
[2020-10-26 09:29:11.062762] [0x000006a8] [info] start to load license file = test(CC-E1-D5-41-21-D6).txt
[2020-10-26 09:29:11.063761] [0x000006a8] [info] done to convert feature successfully (name = base)

[2020-10-26 09:29:11.064760] [0x000006a8] [error] invalid data section
[2020-10-26 09:29:11.064760] [0x000006a8] [error] fail to decrypt
c:/work/dev/source/lickey2/src/lickey_test/licensemanagertest.h(26): error: in "LicenseManagerTest/Constructor01": check false == lic.FeatureMap().IsExpired("base") has failed [false != true]
[2020-10-26 09:29:11.064760] [0x000006a8] [error] invalid sign
c:/work/dev/source/lickey2/src/lickey_test/licensemanagertest.h(27): error: in "LicenseManagerTest/Constructor01": check true == lic.FeatureMap().IsValid("base") has failed [true != false]
[2020-10-26 09:29:11.065756] [0x000006a8] [error] license is not loaded

In debug mode:
[2020-10-26 09:29:58.962658] [0x000024a8] [info] start to load license file = test(CC-E1-D5-41-21-D6).txt
[2020-10-26 09:29:58.969691] [0x000024a8] [info] done to convert feature successfully (name = base)

c:/work/dev/source/lickey2/src/lickey_test/licensemanagertest.h(26): error: in "LicenseManagerTest/Constructor01": check false == lic.FeatureMap().IsExpired("base") has failed [false != true]

*** 6 failures are detected in the test module "my_mod"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant