Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Some issues that we have found

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
issoft



Joined: 30 Apr 2007
Posts: 13

PostPosted: Tue May 01, 2007 7:39 pm    Post subject: Some issues that we have found Reply with quote

We're almost sure that we are going to buy this tool. It looks really great, with this price tag noone can beat it. We're doing some production tests to be sure that what we need can be done without problems and some issues have rised:

a) When you create some licensed controls and you have them opened on the form editor if you build the application the registration form is show once by form. We tried to avoid this as we want the registration form shown only once in design time changing the line
Code:
If Not LicenseManager.CurrentContext Is lastDesignContext Then

by
Code:
If lastDesignContext Is Nothing Then

without success. Any hint on this? We are using third party controls that do this.

b) The license tracker always generates the same key. We think that is due to the trial restrictions but we're not sure because the docs say that two different licences can be generated and we get always the same.

c) We would like to have always different serials for different users. There is the possibility of having repeated keys generated?

Thanks in advance for your help
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed May 02, 2007 1:39 am    Post subject: Re: Some issues that we have found Reply with quote

issoft wrote:
a) When you create some licensed controls and you have them opened on the form editor if you build the application the registration form is show once by form. We tried to avoid this as we want the registration form shown only once in design time changing the line

If Not LicenseManager.CurrentContext Is lastDesignContext Then

by

If lastDesignContext Is Nothing Then

without success. Any hint on this? We are using third party controls that do this.


Making the change you did should mean the form is only displayed once. It will mean however that the user only gets one chance to enter the key. If they don't enter the key then they would have to restart visual studio. What issues are you having?

One trap when developing design time behaivour for controls is realizing that Visual Studio will reference and load a copy of the control DLL that it then holds onto. So it is always good practice to compile your control DLL, then exit Visual Studio completely before loading the test project that references the DLL (directly not via a project reference). This ensures that the design time code you are testing (in this case licensing) is in fact the code that you think it is. If you need to debug the design time code then you can start another instance of Visual Studio and use the Debug Attach to Process option to attach to the first instance of Visual Studio which is using your control.

Code:
b) The license tracker always generates the same key. We think that is due to the trial restrictions but we're not sure because the docs say that two different licences can be generated and we get always the same.


License Tracker will only generate one key (serial no) in evaluation mode. The License Key Generator can generate two separate keys (serial no 0 and 1)

Quote:
c) We would like to have always different serials for different users. There is the possibility of having repeated keys generated?


The serial no is limited to a UInt16 (ie 65536 unique values). If you are fortunate enough to sell this many licenses of a single product then License Tracker will automatically wrap the serial no (ie start again). If this is a concern then you can simply change the ProductInfo that is included when you get to that point (eg set your productInfo to "W" once the serial numbers have wrapped). This will ensure that your license keys are still unique to each customer.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group