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 

monitor.Invalid returning true

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



Joined: 30 Apr 2005
Posts: 45

PostPosted: Sun Jun 05, 2005 12:26 am    Post subject: monitor.Invalid returning true Reply with quote

Hello,

I've got monitor.Invalid returning true when it shouldn't.

I've been using it during development, and my trial period has "expired" on the installed version on my dev box, but in my IDE (VS.NET 2003) I'm getting my dates returned right, but monitor.invalid is true for some reason.

Everything was working right but I was adding and changing some of the app functionality for a new version. Then all of a sudden on day 4 of a 10 day trial, monitor kills the trial period:

Code:

' In main app globals:
    Private monitor As New EvaluationMonitor(System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString.GetHashCode.ToString)

' in start up

If monitor.DaysInUse > 10 Or monitor.Invalid Then
' Disable stuff blah blah


Am I doing something wrong?

Thanks
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun Jun 05, 2005 11:32 pm    Post subject: Reply with quote

The monitor.Invalid flag is used to detect clock winding by the end user. The monitor checks that the clock has not been wound back since the last time the software was run (with some allowance for minor time changes -eg dayligh saving adjustments etc). If it has then the Invalid flag will be set. Most likely you may have triggered this mechanism while testing the evaluation period by changing your system clock.

If you don't want to be this cautious you can simply ignore the Invalid flag in your code and only check the DaysInUse property.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Renegade



Joined: 30 Apr 2005
Posts: 45

PostPosted: Mon Jun 06, 2005 12:46 am    Post subject: Reply with quote

I didn't actually change the clock - and it all seems to be working fine now. I don't know what was going on though. I had changed some other code that wasn't related to licensing when I got the invalid returning true.

I do have my own software installed on my dev box, so I was wondering if there's anything there that might trigger it.

Thanks
Back to top
View user's profile Send private message
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