LicenseValidator startup
My app is freezing on:
HRESULT hr = license.CreateInstance(__uuidof(QlmLicense));
I have called OleInitialize() and alternatively CoInitialize(), but it still hangs at that line. I've been working on this for over a week now.
HELP!
-
Are you using the LicenseValidator class that is generated by the Protect Your App wizard?
0 -
Yes.
0 -
Can you check if the QLM C++ sample works on your system?
The QLM C++ sample is located in this folder:
C:\Users\Public\Documents\Quick License Manager\Samples\qlmpro\Windows\C++\QlmLicenseWizard\vc10_NoMFC\
0 -
The example works fine. That is where I am a bit confused.
0 -
In the LicenseValidator class, unless you registered the QLM binaries (which is no longer required), the line below is expected to fail and return an error:
HRESULT hr = license.CreateInstance(__uuidof(QlmLicense));
Once this line fails, the code will create an instance of the QlmLicense object using the information from the QlmLicenseLib.dll.manifest file.
0 -
It doesn't fail or succeed, it just locks up.
0 -
BTW, Thank you for talking to me on Sunday. :-)
0 -
BTW, it locks up in the CoCreateInstance() under CreateInstance() in the default compip.h header.
0 -
That's odd. We will need to google this and see if we can find similar issues out there.
0 -
I still can't get it to work. It locks up on the __RTC_CheckEsp in CoCreateInstance. I have gone through the Demo app and made sure all the settings were the same. All the EXEs, DLLs and the manifest file are in the output folder. What is missing? The only difference I see is that I am calling it from a support DLL, but that shouldn't make a difference.
0 -
Are you able to send me some kind of sample that does not work so that we can investigate?
John
0 -
Sure. What email address? I will see if I can work up a stripped down version for testing.
0 -
you can send it to support@soraco.co
Thanks.
0 -
I am still working on it. Problem is, the smallest I can get it is 15GB. I will zip it up and put it on dropbox with a link.
0 -
Finally got it. Turns out that CreateInstance() won't work from a DLL InitInstance(). Go figure. Thanks for the comments.
0
Please sign in to leave a comment.
Comments
15 comments