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 

How does the Evaluation Monitor check the usage in PDAs?

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





PostPosted: Tue Feb 07, 2006 10:32 pm    Post subject: How does the Evaluation Monitor check the usage in PDAs? Reply with quote

the program I've written for the PDA resides in memory and when exiting or restarting the program, the only thing happening is that the program is merely redisplayed. The program doesn't go through a shutdown and startup process each time. So, how is the monitor going to keep track of usage? During the debugging process, the install license screen comes up initially as the program is first started, but thereafter the install screen never comes up again.

Am I missing something?

Blaine Fields
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Feb 08, 2006 12:58 am    Post subject: Reply with quote

The UsageCount for the EvaluationMonitor is incremented each time an instance of the EvaluationMonitor class (with the same productID) is created. If your PDA application is intended to stay memory resident then I would suggest checking the DaysInUse flag instead and doing this in some function that you know will be called regularly (eg a button click).
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Blaine Fields
Guest





PostPosted: Wed Feb 08, 2006 3:38 am    Post subject: Reply with quote

Well, I didn't intend it to reside in memory. I just wrote it and when it loads, that's what happens.

I think a better approach would be to raise an event with the change of the day and use that to trigger a usage check. But, that still leaves the issue as to what to do when the time expires. Somehow I'm going to have to shut the program down to a state that it will have to reload and I don't have the slightest idea how to do that.

Blaine Fields
Back to top
Blaine Fields
Guest





PostPosted: Thu Feb 09, 2006 11:07 pm    Post subject: Reply with quote

Found the solution. There is a property called "MinimizeBox" for forms and if this property is set to "true" in the main form, upon close the program will not terminate, but will become minimized. It's quicker to activate this way.

By setting the property to "false", upon close the program actually closes and the evaluation code will function normally when the program is reactivated. Because minimizing the program allows for quicker reactivation, upon the program becoming licensed, I simply change the property back to true programmatically.

Blaine Fields
Back to top
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