CopyMinder Knowledge Base
Browse By Category: | Look Up Error Number: | Search: |
Glossary | Contact Us |
How do I ensure a web check does not occur in a time critical part of my code?
Views: 1097
Rating: -23
Rating: -23
Rate It:
You can ensure that a protection check does not access the CopyMinder web sites during a time critical part of your program by forcing it to access the web site (if web access is required) before entering that part of the code.
The following should achieve this:
1. Do a CM_CheckProtection( 0 ) before the time critical part of your program (e.g. at the start of your program).
2. Do a CM_GetNextWebAccess to see if a web access is due soon.
3. If a web access is due soon, do a CM_CheckProtection( CM_FORCE_WEB_ACCESS ).
Then, subsequent CM_FORCE_WEB_ACCESS( CM_NO_EXEC_CHECK|CM_NO_EXPIRY_CHECK|CM_NO_NEW_NET_USER ) calls will not normally access the web site.
The following should achieve this:
1. Do a CM_CheckProtection( 0 ) before the time critical part of your program (e.g. at the start of your program).
2. Do a CM_GetNextWebAccess to see if a web access is due soon.
3. If a web access is due soon, do a CM_CheckProtection( CM_FORCE_WEB_ACCESS ).
Then, subsequent CM_FORCE_WEB_ACCESS( CM_NO_EXEC_CHECK|CM_NO_EXPIRY_CHECK|CM_NO_NEW_NET_USER ) calls will not normally access the web site.
More Help
If this article did not help you to solve your problem, please use the menu at the top of the page to browse or search more articles, or to contact our support team.
Others in this Category