LicenseValidator startup

Comments

15 comments

  • Avatar
    Soraco Technologies

    Are you using the LicenseValidator class that is generated by the Protect Your App wizard?

     

    0
    Comment actions Permalink
  • Avatar
    Erik Gawtry

    Yes.

    0
    Comment actions Permalink
  • Avatar
    Soraco Technologies

    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
    Comment actions Permalink
  • Avatar
    Erik Gawtry

    The example works fine.  That is where I am a bit confused.

    0
    Comment actions Permalink
  • Avatar
    Soraco Technologies (Edited )

    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
    Comment actions Permalink
  • Avatar
    Erik Gawtry

    It doesn't fail or succeed, it just locks up.

     

    0
    Comment actions Permalink
  • Avatar
    Erik Gawtry

    BTW, Thank you for talking to me on Sunday.  :-)

     

    0
    Comment actions Permalink
  • Avatar
    Erik Gawtry

    BTW, it locks up in the CoCreateInstance() under CreateInstance() in the default compip.h header.

    0
    Comment actions Permalink
  • Avatar
    Soraco Technologies

    That's odd. We will need to google this and see if we can find similar issues out there.

    0
    Comment actions Permalink
  • Avatar
    Erik Gawtry

    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
    Comment actions Permalink
  • Avatar
    Soraco Technologies

    Are you able to send me some kind of sample that does not work so that we can investigate?

     

    John

    0
    Comment actions Permalink
  • Avatar
    Erik Gawtry

    Sure.  What email address?  I will see if I can work up a stripped down version for testing.

     

    0
    Comment actions Permalink
  • Avatar
    Soraco Technologies

    you can send it to support@soraco.co

     

    Thanks.

    0
    Comment actions Permalink
  • Avatar
    Erik Gawtry

    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
    Comment actions Permalink
  • Avatar
    Erik Gawtry

    Finally got it.  Turns out that CreateInstance() won't work from a DLL InitInstance().  Go figure.  Thanks for the comments.

    0
    Comment actions Permalink

Please sign in to leave a comment.